@nu-appdev/northwestern-starlight-theme 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -1
- package/package.json +1 -1
- package/src/components/Hero.astro +1 -0
- package/src/styles/components/blockquotes.css +2 -1
- package/src/styles/components/property-table.css +1 -0
- package/src/styles/components/tables.css +21 -15
- package/src/styles/content.css +9 -3
- package/src/styles/typography.css +78 -7
- package/src/styles/variables.css +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.2] - 2026-03-30
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- H1/H2 now use Noto Serif (`--nu-font-display`), H3–H6 use Poppins (`--nu-font-heading`). Sizes, weights, and colors match the [Department 4.0 stylesheet](https://common.northwestern.edu/dept/4.0/css/styles.css).
|
|
15
|
+
- Poppins 400 loaded the Light file instead of Regular. Poppins 500 (Medium) added from v4 CDN.
|
|
16
|
+
- Table headers now use `--nu-purple-100` with white text.
|
|
17
|
+
- Table striping moved to odd rows (`#f9f6ff`); dark mode uses `rgb(78 42 132 / 10%)`.
|
|
18
|
+
- `--nu-purple-surface` corrected to `#f9f6ff`, `--nu-purple-surface-subtle` to `#f3f0f7`.
|
|
19
|
+
- Blockquote background uses `#f9f6ff` instead of translucent purple.
|
|
20
|
+
- Horizontal rules use 3px `--nu-purple-10` instead of 1px gray.
|
|
21
|
+
- List markers use `--nu-purple-100` instead of `--nu-purple-40`.
|
|
22
|
+
|
|
10
23
|
## [1.3.1] - 2026-03-27
|
|
11
24
|
|
|
12
25
|
### Fixed
|
|
@@ -130,7 +143,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
130
143
|
- OpenAPI plugin compatibility with method badge preservation
|
|
131
144
|
- Reduced motion support for transitions
|
|
132
145
|
|
|
133
|
-
[Unreleased]: https://github.com/NIT-Administrative-Systems/northwestern-starlight-theme/compare/v1.3.
|
|
146
|
+
[Unreleased]: https://github.com/NIT-Administrative-Systems/northwestern-starlight-theme/compare/v1.3.2...HEAD
|
|
147
|
+
[1.3.2]: https://github.com/NIT-Administrative-Systems/northwestern-starlight-theme/compare/v1.3.1...v1.3.2
|
|
134
148
|
[1.3.1]: https://github.com/NIT-Administrative-Systems/northwestern-starlight-theme/compare/v1.3.0...v1.3.1
|
|
135
149
|
[1.3.0]: https://github.com/NIT-Administrative-Systems/northwestern-starlight-theme/compare/v1.2.0...v1.3.0
|
|
136
150
|
[1.2.0]: https://github.com/NIT-Administrative-Systems/northwestern-starlight-theme/compare/v1.1.1...v1.2.0
|
package/package.json
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
padding: 1rem 1.5rem;
|
|
8
8
|
margin: 2rem 0;
|
|
9
9
|
color: var(--nu-color-text);
|
|
10
|
-
background:
|
|
10
|
+
background: #f9f6ff;
|
|
11
11
|
border-inline-start: 10px solid var(--nu-purple-100);
|
|
12
|
+
border-radius: 0 0.75rem 0.75rem 0 !important;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.sl-markdown-content blockquote:not(:where(.not-content *)) p:last-child {
|
|
@@ -16,18 +16,20 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.sl-markdown-content table:not(:where(.not-content *)) > thead > tr > th {
|
|
19
|
-
padding: 0.5rem
|
|
20
|
-
font-family: var(--nu-font-
|
|
21
|
-
font-
|
|
22
|
-
|
|
19
|
+
padding: 0.75rem 0.5rem;
|
|
20
|
+
font-family: var(--nu-font-body);
|
|
21
|
+
font-size: 1rem;
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
color: #fff;
|
|
23
24
|
text-align: left;
|
|
24
|
-
background-color: var(--nu-purple-
|
|
25
|
+
background-color: var(--nu-purple-100);
|
|
25
26
|
border: 1px solid var(--nu-border-color);
|
|
27
|
+
border-right: 1px solid rgb(255 255 255 / 30%);
|
|
28
|
+
border-left: 1px solid rgb(255 255 255 / 30%);
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
:root:not([data-theme="light"]) .sl-markdown-content table:not(:where(.not-content *)) > thead > tr > th {
|
|
29
|
-
color:
|
|
30
|
-
background-color: rgb(78 42 132 / 14%);
|
|
32
|
+
background-color: rgb(78 42 132 / 40%);
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
.sl-markdown-content table:not(:where(.not-content *)) > tbody > tr > td {
|
|
@@ -46,15 +48,19 @@
|
|
|
46
48
|
text-align: center;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
.sl-markdown-content table:not(:where(.not-content *)) > tbody > tr:nth-child(
|
|
50
|
-
background-color: #
|
|
51
|
+
.sl-markdown-content table:not(:where(.not-content *)) > tbody > tr:nth-child(odd) {
|
|
52
|
+
background-color: #f9f6ff;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sl-markdown-content table:not(:where(.not-content *)) > tbody > tr:hover {
|
|
56
|
+
background-color: #f0f0f0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:root:not([data-theme="light"]) .sl-markdown-content table:not(:where(.not-content *)) > tbody > tr:nth-child(odd) {
|
|
60
|
+
background-color: rgb(78 42 132 / 10%);
|
|
51
61
|
}
|
|
52
62
|
|
|
53
|
-
:root:not([data-theme="light"])
|
|
54
|
-
|
|
55
|
-
table:not(:where(.not-content *))
|
|
56
|
-
> tbody
|
|
57
|
-
> tr:nth-child(even) {
|
|
58
|
-
background-color: #1e1e1e;
|
|
63
|
+
:root:not([data-theme="light"]) .sl-markdown-content table:not(:where(.not-content *)) > tbody > tr:hover {
|
|
64
|
+
background-color: rgb(255 255 255 / 5%);
|
|
59
65
|
}
|
|
60
66
|
}
|
package/src/styles/content.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
width: 6px;
|
|
40
40
|
height: 6px;
|
|
41
41
|
content: "";
|
|
42
|
-
background: var(--nu-purple-
|
|
42
|
+
background: var(--nu-purple-100);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
:root:not([data-theme="light"]) .sl-markdown-content ul:not(:where(.not-content *)) > li::before {
|
|
@@ -56,10 +56,16 @@
|
|
|
56
56
|
border-color: var(--nu-purple-30);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
.sl-markdown-content mark:not(:where(.not-content *)),
|
|
60
|
+
.sl-markdown-content .highlight:not(:where(.not-content *)) {
|
|
61
|
+
padding: 3px;
|
|
62
|
+
background: rgb(228 224 238 / 50%);
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
.sl-markdown-content hr:not(:where(.not-content *)) {
|
|
60
|
-
height:
|
|
66
|
+
height: 3px;
|
|
61
67
|
margin: 2.5rem 0;
|
|
62
|
-
background: var(--nu-
|
|
68
|
+
background: var(--nu-purple-10);
|
|
63
69
|
border: 0;
|
|
64
70
|
}
|
|
65
71
|
|
|
@@ -78,7 +78,15 @@
|
|
|
78
78
|
font-family: Poppins;
|
|
79
79
|
font-style: normal;
|
|
80
80
|
font-weight: 400;
|
|
81
|
-
src: url("https://common.northwestern.edu/v8/css/fonts/Poppins-
|
|
81
|
+
src: url("https://common.northwestern.edu/v8/css/fonts/Poppins-Regular.woff") format("woff");
|
|
82
|
+
font-display: swap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@font-face {
|
|
86
|
+
font-family: Poppins;
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
src: url("https://common.northwestern.edu/dept/4.0/css/fonts/poppins/poppins-v21-latin-500.woff2") format("woff2");
|
|
82
90
|
font-display: swap;
|
|
83
91
|
}
|
|
84
92
|
|
|
@@ -150,18 +158,81 @@
|
|
|
150
158
|
|
|
151
159
|
h1,
|
|
152
160
|
h2 {
|
|
153
|
-
font-family: var(--nu-font-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
h1 {
|
|
157
|
-
color: var(--sl-color-text-accent);
|
|
161
|
+
font-family: var(--nu-font-display);
|
|
158
162
|
}
|
|
159
163
|
|
|
160
164
|
h3,
|
|
161
165
|
h4,
|
|
162
166
|
h5,
|
|
163
167
|
h6 {
|
|
164
|
-
font-family: var(--nu-font-
|
|
168
|
+
font-family: var(--nu-font-heading);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.main-pane h1 {
|
|
172
|
+
display: inline;
|
|
173
|
+
font-size: clamp(2rem, 1rem + 3vw, 2.8125rem);
|
|
174
|
+
font-weight: 500;
|
|
175
|
+
line-height: 1.4;
|
|
176
|
+
color: #000;
|
|
177
|
+
box-shadow: inset 0 -0.55em 0 0 var(--nu-purple-10);
|
|
178
|
+
box-decoration-break: clone;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:root:not([data-theme="light"]) .main-pane h1 {
|
|
182
|
+
color: #fff;
|
|
183
|
+
box-shadow: inset 0 -0.55em 0 0 var(--nu-purple-140);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.sl-markdown-content h2 {
|
|
187
|
+
font-size: 1.875rem;
|
|
188
|
+
font-weight: 700;
|
|
189
|
+
line-height: 1.4;
|
|
190
|
+
color: var(--nu-purple-120);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.sl-markdown-content h3 {
|
|
194
|
+
font-size: 1.625rem;
|
|
195
|
+
font-weight: 500;
|
|
196
|
+
line-height: 1.4;
|
|
197
|
+
color: var(--nu-black-80);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.sl-markdown-content h4 {
|
|
201
|
+
font-size: 1.4375rem;
|
|
202
|
+
font-weight: 500;
|
|
203
|
+
line-height: 1.4;
|
|
204
|
+
color: var(--nu-purple-120);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.sl-markdown-content h5 {
|
|
208
|
+
font-size: 1.25rem;
|
|
209
|
+
font-weight: 500;
|
|
210
|
+
line-height: 1.4;
|
|
211
|
+
color: var(--nu-black-80);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.sl-markdown-content h6 {
|
|
215
|
+
font-size: 1.125rem;
|
|
216
|
+
font-weight: 500;
|
|
217
|
+
line-height: 1.4;
|
|
218
|
+
color: var(--nu-black-80);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:root:not([data-theme="light"]) .sl-markdown-content h2 {
|
|
222
|
+
color: var(--nu-purple-30);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:root:not([data-theme="light"]) .sl-markdown-content h3 {
|
|
226
|
+
color: var(--nu-color-text);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:root:not([data-theme="light"]) .sl-markdown-content h4 {
|
|
230
|
+
color: var(--nu-purple-30);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:root:not([data-theme="light"]) .sl-markdown-content h5,
|
|
234
|
+
:root:not([data-theme="light"]) .sl-markdown-content h6 {
|
|
235
|
+
color: var(--nu-color-text);
|
|
165
236
|
}
|
|
166
237
|
|
|
167
238
|
.site-title {
|
package/src/styles/variables.css
CHANGED
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
--nu-transition-default: 200ms ease;
|
|
56
56
|
--nu-transition-slow: 300ms ease-in-out;
|
|
57
57
|
|
|
58
|
-
--nu-purple-surface: #
|
|
59
|
-
--nu-purple-surface-subtle: #
|
|
58
|
+
--nu-purple-surface: #f9f6ff;
|
|
59
|
+
--nu-purple-surface-subtle: #f3f0f7;
|
|
60
60
|
--nu-purple-tint: rgb(78 42 132 / 15%);
|
|
61
61
|
--nu-purple-tint-strong: rgb(78 42 132 / 20%);
|
|
62
62
|
--nu-surface-muted: #f9fafb;
|
|
63
|
-
--nu-hover-bg: #
|
|
63
|
+
--nu-hover-bg: #f0f0f0;
|
|
64
64
|
|
|
65
65
|
--nu-focus-ring: var(--nu-purple-100);
|
|
66
66
|
--nu-focus-border: #a795c2;
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
--nu-focus-ring: var(--nu-purple-100);
|
|
91
91
|
--nu-focus-shadow-color: rgb(78 42 132 / 25%);
|
|
92
92
|
|
|
93
|
-
--nu-purple-surface: #
|
|
94
|
-
--nu-purple-surface-subtle: #
|
|
93
|
+
--nu-purple-surface: #f9f6ff;
|
|
94
|
+
--nu-purple-surface-subtle: #f3f0f7;
|
|
95
95
|
--nu-surface-muted: #f9fafb;
|
|
96
|
-
--nu-hover-bg: #
|
|
96
|
+
--nu-hover-bg: #f0f0f0;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
:root:not([data-theme="light"]),
|