@wakeful-cloud/slidev-theme-illinois 0.0.0-stage → 0.1.0
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/LICENSE +45 -0
- package/README.md +592 -2
- package/assets/logos/block-i-blue.svg +54 -0
- package/assets/logos/block-i-full.svg +54 -0
- package/assets/logos/block-i-orange.svg +54 -0
- package/assets/logos/wordmark-blue.svg +94 -0
- package/assets/logos/wordmark-formal-blue.svg +234 -0
- package/assets/logos/wordmark-formal-full.svg +234 -0
- package/assets/logos/wordmark-formal-orange.svg +234 -0
- package/assets/logos/wordmark-full.svg +94 -0
- package/assets/logos/wordmark-orange.svg +94 -0
- package/assets/logos/wordmark-vertical-blue.svg +94 -0
- package/assets/logos/wordmark-vertical-full.svg +94 -0
- package/assets/logos/wordmark-vertical-orange.svg +94 -0
- package/citations/engine.ts +738 -0
- package/citations/errors.ts +79 -0
- package/citations/plugin.ts +137 -0
- package/citations/styles.ts +300 -0
- package/citations/syntax.ts +357 -0
- package/components/bibliography.vue +185 -0
- package/components/callout.vue +42 -0
- package/components/card.vue +37 -0
- package/components/cite.vue +62 -0
- package/components/frame.vue +71 -0
- package/components/illinois-logo.vue +45 -0
- package/components/math-morph.vue +252 -0
- package/components/qr-code.vue +51 -0
- package/components/stat.vue +43 -0
- package/components/steps.vue +77 -0
- package/global.d.ts +14 -0
- package/internal/brand-logo.vue +48 -0
- package/internal/citations.ts +206 -0
- package/internal/kicker.vue +13 -0
- package/internal/layout-root.vue +42 -0
- package/internal/pattern.vue +20 -0
- package/internal/split.vue +147 -0
- package/internal/theme.ts +878 -0
- package/layouts/agenda.vue +82 -0
- package/layouts/appendix-right.vue +15 -0
- package/layouts/appendix.vue +25 -0
- package/layouts/canvas.vue +21 -0
- package/layouts/center.vue +17 -0
- package/layouts/compare.vue +48 -0
- package/layouts/cover-right.vue +15 -0
- package/layouts/cover.vue +170 -0
- package/layouts/default.vue +15 -0
- package/layouts/end-right.vue +15 -0
- package/layouts/end.vue +89 -0
- package/layouts/fact-right.vue +15 -0
- package/layouts/fact.vue +25 -0
- package/layouts/figure.vue +43 -0
- package/layouts/grid.vue +33 -0
- package/layouts/iframe-left.vue +16 -0
- package/layouts/iframe-right.vue +16 -0
- package/layouts/image-left.vue +16 -0
- package/layouts/image-right.vue +16 -0
- package/layouts/image.vue +40 -0
- package/layouts/media-left.vue +17 -0
- package/layouts/media-right.vue +17 -0
- package/layouts/people.vue +98 -0
- package/layouts/quote-right.vue +15 -0
- package/layouts/quote.vue +41 -0
- package/layouts/references.vue +36 -0
- package/layouts/section-right.vue +15 -0
- package/layouts/section.vue +53 -0
- package/layouts/statement-right.vue +15 -0
- package/layouts/statement.vue +30 -0
- package/layouts/two-cols-header.vue +32 -0
- package/layouts/two-cols.vue +31 -0
- package/package.json +114 -4
- package/setup/mermaid.ts +73 -0
- package/setup/shiki.ts +147 -0
- package/setup/transformers.ts +21 -0
- package/setup/unocss.ts +34 -0
- package/setup/vite-plugins.ts +8 -0
- package/slide-top.vue +149 -0
- package/styles/base.css +309 -0
- package/styles/components.css +336 -0
- package/styles/index.ts +19 -0
- package/styles/layouts.css +1242 -0
- package/styles/looks.css +307 -0
- package/styles/tokens.css +324 -0
package/styles/looks.css
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Looks (`look` option). Each look is a preset of the other look options (see `LOOKS` in
|
|
3
|
+
* internal/theme.ts) plus the styling below. `classic` is the base styling and needs no overrides.
|
|
4
|
+
*
|
|
5
|
+
* Selectors repeat `.il-layout` / the layout class so they win over layouts.css regardless of
|
|
6
|
+
* stylesheet order.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* ---------- bold: keynote style, heavy uppercase type, accent bars ---------- */
|
|
10
|
+
|
|
11
|
+
.il-look-bold.slidev-layout :is(h1, h2, h3) {
|
|
12
|
+
font-weight: 800;
|
|
13
|
+
letter-spacing: -0.03em;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.il-look-bold.slidev-layout h1 {
|
|
17
|
+
font-size: calc(var(--il-size-h1) * 1.1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Short accent bar under the title of content slides */
|
|
21
|
+
.il-look-bold.il-layout:is(
|
|
22
|
+
.il-agenda,
|
|
23
|
+
.il-compare,
|
|
24
|
+
.il-default,
|
|
25
|
+
.il-figure,
|
|
26
|
+
.il-grid,
|
|
27
|
+
.il-people,
|
|
28
|
+
.il-references,
|
|
29
|
+
.il-split,
|
|
30
|
+
.il-two-cols,
|
|
31
|
+
.il-two-cols-header
|
|
32
|
+
)
|
|
33
|
+
h1::after {
|
|
34
|
+
background: var(--il-accent);
|
|
35
|
+
content: "";
|
|
36
|
+
display: block;
|
|
37
|
+
height: 6px;
|
|
38
|
+
margin-top: 0.35em;
|
|
39
|
+
width: 64px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.il-look-bold.il-layout:is(.il-appendix, .il-cover, .il-end, .il-section, .il-statement) h1 {
|
|
43
|
+
font-weight: 800;
|
|
44
|
+
letter-spacing: -0.02em;
|
|
45
|
+
text-transform: uppercase;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/*
|
|
49
|
+
* Outlined section numbers. The stroke is painted under a background-colored fill, which hides
|
|
50
|
+
* the inner half of the stroke and the overlapping contours of the variable font
|
|
51
|
+
*/
|
|
52
|
+
.il-look-bold.il-layout.il-section .il-section-number {
|
|
53
|
+
-webkit-text-stroke: 4px var(--il-heading);
|
|
54
|
+
color: var(--il-bg);
|
|
55
|
+
paint-order: stroke fill;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Over a photo there is no flat background to fill with: a thin outline only */
|
|
59
|
+
.il-look-bold.il-layout.il-section.il-surface-image .il-section-number {
|
|
60
|
+
-webkit-text-stroke-width: 2px;
|
|
61
|
+
color: transparent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.il-look-bold.slidev-layout ul > li::before {
|
|
65
|
+
height: 0.45em;
|
|
66
|
+
top: calc(0.5lh - 0.225em);
|
|
67
|
+
width: 0.45em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ---------- minimal: monochrome, light Montserrat, hairlines instead of fills ---------- */
|
|
71
|
+
|
|
72
|
+
.il-look-minimal.slidev-layout :is(h1, h2, h3) {
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
letter-spacing: -0.015em;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.il-look-minimal.slidev-layout h1 {
|
|
78
|
+
font-size: calc(var(--il-size-h1) * 1.1);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Display type: very light */
|
|
82
|
+
.il-look-minimal.il-layout:is(
|
|
83
|
+
.il-appendix,
|
|
84
|
+
.il-cover,
|
|
85
|
+
.il-end,
|
|
86
|
+
.il-fact,
|
|
87
|
+
.il-section,
|
|
88
|
+
.il-statement
|
|
89
|
+
)
|
|
90
|
+
h1 {
|
|
91
|
+
font-weight: 250;
|
|
92
|
+
letter-spacing: -0.03em;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.il-look-minimal.slidev-layout :is(.il-kicker, h5, h6) {
|
|
96
|
+
color: var(--il-muted);
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Dashes instead of squares */
|
|
101
|
+
.il-look-minimal.slidev-layout ul > li::before {
|
|
102
|
+
background: var(--il-muted);
|
|
103
|
+
height: 1px;
|
|
104
|
+
top: calc(0.5lh - 0.5px);
|
|
105
|
+
width: 0.55em;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.il-look-minimal.slidev-layout ol > li::marker {
|
|
109
|
+
color: var(--il-muted);
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.il-look-minimal.il-layout.il-section .il-section-number {
|
|
114
|
+
color: var(--il-muted);
|
|
115
|
+
font-weight: 200;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Hairline outlines instead of fills, thin rules */
|
|
119
|
+
.il-look-minimal .il-card-panel,
|
|
120
|
+
.il-look-minimal .il-compare-panel.il-emphasis {
|
|
121
|
+
background: transparent;
|
|
122
|
+
border: var(--il-rule) solid var(--il-heading);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.il-look-minimal .il-callout,
|
|
126
|
+
.il-look-minimal .il-stat {
|
|
127
|
+
border-top-width: var(--il-rule);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.il-look-minimal .il-stat-value,
|
|
131
|
+
.il-look-minimal.il-layout.il-fact h1 {
|
|
132
|
+
font-weight: 250;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.il-look-minimal.il-layout blockquote.il-quote-text {
|
|
136
|
+
font-weight: 300;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* ---------- swiss: International Typographic Style ---------- */
|
|
140
|
+
|
|
141
|
+
/* Heavy, tightly set, lowercase titles at extreme size contrast */
|
|
142
|
+
.il-look-swiss.slidev-layout :is(h1, h2, h3) {
|
|
143
|
+
font-weight: 800;
|
|
144
|
+
letter-spacing: -0.045em;
|
|
145
|
+
line-height: 0.95;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.il-look-swiss.slidev-layout h1 {
|
|
149
|
+
font-size: calc(var(--il-size-h1) * 1.6);
|
|
150
|
+
text-transform: lowercase;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.il-look-swiss.il-layout:is(.il-appendix, .il-end, .il-section, .il-statement) h1 {
|
|
154
|
+
font-size: calc(var(--il-size-display) * 1.7);
|
|
155
|
+
letter-spacing: -0.06em;
|
|
156
|
+
line-height: 0.88;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.il-look-swiss.il-layout.il-cover h1 {
|
|
160
|
+
font-size: calc(var(--il-size-display) * 1.6);
|
|
161
|
+
letter-spacing: -0.06em;
|
|
162
|
+
line-height: 0.88;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Thick rule above the title of content slides */
|
|
166
|
+
.il-look-swiss.il-layout:is(
|
|
167
|
+
.il-agenda,
|
|
168
|
+
.il-compare,
|
|
169
|
+
.il-default,
|
|
170
|
+
.il-figure,
|
|
171
|
+
.il-grid,
|
|
172
|
+
.il-people,
|
|
173
|
+
.il-references,
|
|
174
|
+
.il-split,
|
|
175
|
+
.il-two-cols,
|
|
176
|
+
.il-two-cols-header
|
|
177
|
+
)
|
|
178
|
+
h1 {
|
|
179
|
+
border-top: 6px solid var(--il-heading);
|
|
180
|
+
padding-top: 0.25em;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Default slides use an asymmetric grid: title across, label in the narrow column, body wide */
|
|
184
|
+
.il-look-swiss.il-layout.il-default {
|
|
185
|
+
align-content: start;
|
|
186
|
+
column-gap: var(--il-gap);
|
|
187
|
+
display: grid;
|
|
188
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.il-look-swiss.il-layout.il-default > * {
|
|
192
|
+
grid-column: 2;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.il-look-swiss.il-layout.il-default > h1 {
|
|
196
|
+
grid-column: 1 / -1;
|
|
197
|
+
grid-row: 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.il-look-swiss.il-layout.il-default > :is(.il-kicker, h5, h6) {
|
|
201
|
+
grid-column: 1;
|
|
202
|
+
grid-row: 2;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Labels: small bold sentence case instead of tracked capitals */
|
|
206
|
+
.il-look-swiss.slidev-layout :is(.il-kicker, h5, h6) {
|
|
207
|
+
color: var(--il-heading);
|
|
208
|
+
font-family: var(--il-font-body);
|
|
209
|
+
font-size: var(--il-size-small);
|
|
210
|
+
font-weight: 700;
|
|
211
|
+
letter-spacing: 0;
|
|
212
|
+
text-transform: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Lists without markers, separated by hairlines */
|
|
216
|
+
.il-look-swiss.slidev-layout ul:not([class]) {
|
|
217
|
+
padding-left: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.il-look-swiss.slidev-layout ul:not([class]) > li {
|
|
221
|
+
border-top: var(--il-rule) solid var(--il-rule-color);
|
|
222
|
+
margin: 0;
|
|
223
|
+
padding: 0.3em 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.il-look-swiss.slidev-layout ul:not([class]) > li::before {
|
|
227
|
+
display: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Solid block above the cover title */
|
|
231
|
+
.il-look-swiss.il-layout.il-cover .il-cover-main::before {
|
|
232
|
+
background: var(--il-heading);
|
|
233
|
+
content: "";
|
|
234
|
+
display: block;
|
|
235
|
+
height: 22px;
|
|
236
|
+
margin-bottom: 28px;
|
|
237
|
+
width: 36%;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/*
|
|
241
|
+
* Section: title at the top, a gigantic numeral bleeding off the right edge. It sits on the footer
|
|
242
|
+
* line (above the per-slide references) so it never covers the page number or citations
|
|
243
|
+
*/
|
|
244
|
+
.il-look-swiss.il-layout.il-section {
|
|
245
|
+
align-items: flex-start;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.il-look-swiss.il-layout.il-section .il-section-number {
|
|
249
|
+
bottom: calc(var(--il-refs-height, 0px) + 30px - 0.2em);
|
|
250
|
+
color: var(--il-heading);
|
|
251
|
+
font-size: calc(var(--il-size-huge) * 3.4);
|
|
252
|
+
font-weight: 800;
|
|
253
|
+
letter-spacing: -0.07em;
|
|
254
|
+
line-height: 1;
|
|
255
|
+
position: absolute;
|
|
256
|
+
right: -0.05em;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.il-look-swiss.il-mirrored.il-section .il-section-number {
|
|
260
|
+
left: -0.05em;
|
|
261
|
+
right: auto;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Cards are solid blocks: Illini Blue, or Altgeld on dark slides */
|
|
265
|
+
.il-look-swiss .il-card-panel {
|
|
266
|
+
--il-accent: var(--il-accent-dark);
|
|
267
|
+
--il-accent-text: var(--il-accent-text-dark);
|
|
268
|
+
--il-fg: #ffffff;
|
|
269
|
+
--il-heading: #ffffff;
|
|
270
|
+
--il-muted: #aab6c8;
|
|
271
|
+
--il-panel: rgb(255 255 255 / 7%);
|
|
272
|
+
--il-panel-strong: rgb(255 255 255 / 14%);
|
|
273
|
+
--il-rule-color: rgb(255 255 255 / 18%);
|
|
274
|
+
background: var(--il-blue);
|
|
275
|
+
color: var(--il-fg);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
html.dark .il-look-swiss:not(.il-schema-light, .il-surface-orange) .il-card-panel,
|
|
279
|
+
.il-look-swiss.il-schema-dark:not(.il-surface-orange) .il-card-panel,
|
|
280
|
+
.il-look-swiss.il-surface-blue .il-card-panel {
|
|
281
|
+
--il-accent: #ffffff;
|
|
282
|
+
--il-accent-text: #ffffff;
|
|
283
|
+
--il-muted: rgb(255 255 255 / 95%);
|
|
284
|
+
--il-panel: rgb(11 26 49 / 12%);
|
|
285
|
+
--il-panel-strong: rgb(11 26 49 / 20%);
|
|
286
|
+
--il-rule-color: rgb(255 255 255 / 35%);
|
|
287
|
+
background: var(--il-altgeld);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* Thick rules on stats and callouts, heavy numbers */
|
|
291
|
+
.il-look-swiss .il-callout,
|
|
292
|
+
.il-look-swiss .il-stat {
|
|
293
|
+
border-top-width: 6px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.il-look-swiss .il-stat-value {
|
|
297
|
+
font-size: calc(var(--il-size-display) * 1.4);
|
|
298
|
+
font-weight: 800;
|
|
299
|
+
letter-spacing: -0.06em;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* Large, heavy page numbers */
|
|
303
|
+
.il-look-swiss .il-footer-page {
|
|
304
|
+
font-size: calc(var(--il-size-h3) * 1.2);
|
|
305
|
+
font-weight: 800;
|
|
306
|
+
letter-spacing: -0.04em;
|
|
307
|
+
}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Design tokens
|
|
3
|
+
*
|
|
4
|
+
* Brand colors follow brand.illinois.edu; neutrals are blue-tinted so they sit comfortably next to
|
|
5
|
+
* Illini Blue. Every accent has six shades: graphic shades (rules, markers, large text) and
|
|
6
|
+
* small-text shades for light, tint and dark backgrounds, chosen to meet WCAG AA (3:1 for graphics
|
|
7
|
+
* and large text, 4.5:1 for small text).
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
/* Brand */
|
|
12
|
+
--il-altgeld: #c84113;
|
|
13
|
+
--il-blue: #13294b;
|
|
14
|
+
--il-blue-deep: #0b1a31;
|
|
15
|
+
--il-orange: #ff5f05;
|
|
16
|
+
|
|
17
|
+
/* Supporting (accents, callouts) */
|
|
18
|
+
--il-harvest: #fcb316;
|
|
19
|
+
--il-industrial: #1d58a7;
|
|
20
|
+
|
|
21
|
+
/* Code backgrounds of the `auto` surface (also used for Monaco editors, see below) */
|
|
22
|
+
--il-code-bg-dark: #12233f;
|
|
23
|
+
--il-code-bg-light: #f4f6f9;
|
|
24
|
+
|
|
25
|
+
/*
|
|
26
|
+
* Status colors, resolved against the surface's color scheme where they are used (both meet
|
|
27
|
+
* 4.5:1 on light and dark surfaces; the orange surface overrides them)
|
|
28
|
+
*/
|
|
29
|
+
--il-error: light-dark(#b3261e, #ff7b7b);
|
|
30
|
+
--il-warning: light-dark(#8a5a00, var(--il-harvest));
|
|
31
|
+
|
|
32
|
+
/* Typography */
|
|
33
|
+
--il-font-body: "Source Sans 3 Variable", "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
|
|
34
|
+
--il-font-display: "Montserrat Variable", "Montserrat", "Arial Black", sans-serif;
|
|
35
|
+
--il-font-mono: "Source Code Pro Variable", "Source Code Pro", ui-monospace, monospace;
|
|
36
|
+
|
|
37
|
+
/* Shape */
|
|
38
|
+
--il-frame-radius: 2.75rem;
|
|
39
|
+
--il-radius: 6px;
|
|
40
|
+
--il-rule: 1px;
|
|
41
|
+
|
|
42
|
+
/* Slidev integration */
|
|
43
|
+
--slidev-code-font-family: var(--il-font-mono);
|
|
44
|
+
--slidev-code-radius: var(--il-radius);
|
|
45
|
+
--slidev-slide-container-background: var(--il-bg);
|
|
46
|
+
--slidev-theme-primary: var(--il-orange);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/*
|
|
50
|
+
* Accents (`accent` option): graphic and text shades for light and dark backgrounds
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
:root,
|
|
54
|
+
.il-accent-orange {
|
|
55
|
+
--il-accent-dark: var(--il-orange);
|
|
56
|
+
--il-accent-light: var(--il-orange);
|
|
57
|
+
--il-accent-text-dark: #ff8a4c;
|
|
58
|
+
--il-accent-text-light: var(--il-altgeld);
|
|
59
|
+
--il-accent-text-tint: #b5390d;
|
|
60
|
+
|
|
61
|
+
/* Illini Orange is 2.7:1 on the light tint; a slightly deeper orange reaches 3.4:1 */
|
|
62
|
+
--il-accent-tint: #e05200;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Monochrome: Illini Blue on light backgrounds, white on dark ones */
|
|
66
|
+
.il-accent-blue {
|
|
67
|
+
--il-accent-dark: #ffffff;
|
|
68
|
+
--il-accent-light: var(--il-blue);
|
|
69
|
+
--il-accent-text-dark: #ffffff;
|
|
70
|
+
--il-accent-text-light: var(--il-blue);
|
|
71
|
+
--il-accent-text-tint: var(--il-blue);
|
|
72
|
+
--il-accent-tint: var(--il-blue);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.il-accent-industrial {
|
|
76
|
+
--il-accent-dark: #7fa6e0;
|
|
77
|
+
--il-accent-light: var(--il-industrial);
|
|
78
|
+
--il-accent-text-dark: #7fa6e0;
|
|
79
|
+
--il-accent-text-light: var(--il-industrial);
|
|
80
|
+
--il-accent-text-tint: var(--il-industrial);
|
|
81
|
+
--il-accent-tint: var(--il-industrial);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/*
|
|
85
|
+
* Typography and shape options (`font`, `headingFont`, `corners`)
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/* Atkinson Hyperlegible Next everywhere */
|
|
89
|
+
.il-font-hyperlegible {
|
|
90
|
+
--il-font-body: "Atkinson Hyperlegible Next Variable", Arial, sans-serif;
|
|
91
|
+
--il-font-display: "Atkinson Hyperlegible Next Variable", Arial, sans-serif;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Quieter headings in the body font */
|
|
95
|
+
.il-heading-source-sans {
|
|
96
|
+
--il-font-display: var(--il-font-body);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.il-corners-square {
|
|
100
|
+
--il-frame-radius: 0px;
|
|
101
|
+
--il-radius: 0px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/*
|
|
105
|
+
* Per-slide `colorSchema` (`il-schema-dark` / `il-schema-light`) forces the dark or light variant of
|
|
106
|
+
* the `auto` and `tint` surfaces below, and switches code highlighting to match.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
.il-schema-dark .shiki,
|
|
110
|
+
.il-schema-dark .shiki span {
|
|
111
|
+
color: var(--shiki-dark) !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.il-schema-light .shiki,
|
|
115
|
+
.il-schema-light .shiki span {
|
|
116
|
+
color: var(--shiki-light) !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Surfaces that are always dark use the dark highlighting colors, even in light mode */
|
|
120
|
+
:is(.il-surface-blue, .il-surface-image, .il-surface-orange) :is(.shiki, .shiki span) {
|
|
121
|
+
color: var(--shiki-dark) !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
* Monaco editors use one highlighting theme per page, chosen by Slidev's dark-mode toggle. On a
|
|
126
|
+
* slide whose scheme differs from the deck's, give them the code background of that theme.
|
|
127
|
+
*/
|
|
128
|
+
html:not(.dark)
|
|
129
|
+
:is(.il-surface-blue, .il-surface-image, .il-surface-orange, .il-schema-dark)
|
|
130
|
+
.slidev-monaco-container {
|
|
131
|
+
--slidev-code-background: var(--il-code-bg-light);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
html.dark .il-schema-light:is(.il-surface-auto, .il-surface-tint) .slidev-monaco-container {
|
|
135
|
+
--slidev-code-background: var(--il-code-bg-dark);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/*
|
|
139
|
+
* Surfaces: every layout root gets exactly one `il-surface-*` class that defines its palette.
|
|
140
|
+
*
|
|
141
|
+
* --il-accent graphic accent (rules, markers, large numbers)
|
|
142
|
+
* --il-accent-text accent for small text (meets WCAG AA on --il-bg)
|
|
143
|
+
* --il-bg / --il-fg background and body text
|
|
144
|
+
* --il-code-bg code block fill
|
|
145
|
+
* --il-error / -warning status colors (defined once on :root, white on orange)
|
|
146
|
+
* --il-heading heading color
|
|
147
|
+
* --il-muted secondary text (captions, labels)
|
|
148
|
+
* --il-panel / -strong card fills
|
|
149
|
+
* --il-rule-color hairlines
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
:root,
|
|
153
|
+
.il-surface-auto,
|
|
154
|
+
html.dark .il-schema-light.il-surface-auto {
|
|
155
|
+
--il-accent: var(--il-accent-light);
|
|
156
|
+
--il-accent-text: var(--il-accent-text-light);
|
|
157
|
+
--il-bg: #ffffff;
|
|
158
|
+
--il-code-bg: var(--il-code-bg-light);
|
|
159
|
+
--il-fg: #1c2a3f;
|
|
160
|
+
--il-heading: var(--il-blue);
|
|
161
|
+
--il-muted: #5a6577;
|
|
162
|
+
--il-panel: #f2f4f8;
|
|
163
|
+
--il-panel-strong: #e6eaf1;
|
|
164
|
+
--il-rule-color: #d5dbe4;
|
|
165
|
+
color-scheme: light;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
html.dark,
|
|
169
|
+
html.dark .il-surface-auto,
|
|
170
|
+
.il-schema-dark.il-surface-auto {
|
|
171
|
+
--il-accent: var(--il-accent-dark);
|
|
172
|
+
--il-accent-text: var(--il-accent-text-dark);
|
|
173
|
+
--il-bg: var(--il-blue-deep);
|
|
174
|
+
--il-code-bg: var(--il-code-bg-dark);
|
|
175
|
+
--il-fg: #e3e8ef;
|
|
176
|
+
--il-heading: #ffffff;
|
|
177
|
+
--il-muted: #9eabbf;
|
|
178
|
+
--il-panel: #13243f;
|
|
179
|
+
--il-panel-strong: #1b3052;
|
|
180
|
+
--il-rule-color: #2a3d5c;
|
|
181
|
+
color-scheme: dark;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.il-surface-tint,
|
|
185
|
+
html.dark .il-schema-light.il-surface-tint {
|
|
186
|
+
--il-accent: var(--il-accent-tint);
|
|
187
|
+
--il-accent-text: var(--il-accent-text-tint);
|
|
188
|
+
--il-bg: #eef1f6;
|
|
189
|
+
--il-code-bg: #ffffff;
|
|
190
|
+
--il-fg: #1c2a3f;
|
|
191
|
+
--il-heading: var(--il-blue);
|
|
192
|
+
--il-muted: #556074;
|
|
193
|
+
--il-panel: #ffffff;
|
|
194
|
+
--il-panel-strong: #e2e7ef;
|
|
195
|
+
--il-rule-color: #cdd4df;
|
|
196
|
+
color-scheme: light;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/*
|
|
200
|
+
* Dark tint is Illini Blue, so title and section slides carry the brand color in dark mode and
|
|
201
|
+
* stand out from the deeper navy of `auto`
|
|
202
|
+
*/
|
|
203
|
+
html.dark .il-surface-tint,
|
|
204
|
+
.il-schema-dark.il-surface-tint {
|
|
205
|
+
--il-accent: var(--il-accent-dark);
|
|
206
|
+
--il-accent-text: var(--il-accent-text-dark);
|
|
207
|
+
--il-bg: var(--il-blue);
|
|
208
|
+
--il-code-bg: var(--il-blue-deep);
|
|
209
|
+
--il-fg: #e6ebf2;
|
|
210
|
+
--il-heading: #ffffff;
|
|
211
|
+
--il-muted: #aab6c8;
|
|
212
|
+
--il-panel: rgb(255 255 255 / 7%);
|
|
213
|
+
--il-panel-strong: rgb(255 255 255 / 12%);
|
|
214
|
+
--il-rule-color: rgb(255 255 255 / 18%);
|
|
215
|
+
color-scheme: dark;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.il-surface-blue,
|
|
219
|
+
html.dark .il-surface-blue {
|
|
220
|
+
--il-accent: var(--il-accent-dark);
|
|
221
|
+
--il-accent-text: var(--il-accent-text-dark);
|
|
222
|
+
--il-bg: var(--il-blue);
|
|
223
|
+
--il-code-bg: var(--il-blue-deep);
|
|
224
|
+
--il-fg: #e6ebf2;
|
|
225
|
+
--il-heading: #ffffff;
|
|
226
|
+
--il-muted: #aab6c8;
|
|
227
|
+
--il-panel: rgb(255 255 255 / 7%);
|
|
228
|
+
--il-panel-strong: rgb(255 255 255 / 12%);
|
|
229
|
+
--il-rule-color: rgb(255 255 255 / 18%);
|
|
230
|
+
color-scheme: dark;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Altgeld rather than Illini Orange: large floods of #FF5F05 are glaring on a projector */
|
|
234
|
+
.il-surface-orange,
|
|
235
|
+
html.dark .il-surface-orange {
|
|
236
|
+
--il-accent: #ffffff;
|
|
237
|
+
--il-accent-text: #ffffff;
|
|
238
|
+
--il-bg: var(--il-altgeld);
|
|
239
|
+
--il-code-bg: rgb(11 26 49 / 55%);
|
|
240
|
+
--il-error: #ffffff;
|
|
241
|
+
--il-fg: #ffffff;
|
|
242
|
+
--il-heading: #ffffff;
|
|
243
|
+
--il-muted: rgb(255 255 255 / 95%);
|
|
244
|
+
--il-panel: rgb(11 26 49 / 12%);
|
|
245
|
+
--il-panel-strong: rgb(11 26 49 / 20%);
|
|
246
|
+
--il-rule-color: rgb(255 255 255 / 35%);
|
|
247
|
+
--il-warning: #ffffff;
|
|
248
|
+
color-scheme: dark;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.il-surface-image,
|
|
252
|
+
html.dark .il-surface-image {
|
|
253
|
+
--il-accent: var(--il-accent-dark);
|
|
254
|
+
--il-accent-text: var(--il-accent-text-dark);
|
|
255
|
+
--il-bg: var(--il-blue-deep);
|
|
256
|
+
--il-code-bg: rgb(11 26 49 / 85%);
|
|
257
|
+
--il-fg: #ffffff;
|
|
258
|
+
--il-heading: #ffffff;
|
|
259
|
+
--il-muted: rgb(255 255 255 / 80%);
|
|
260
|
+
--il-panel: rgb(11 26 49 / 55%);
|
|
261
|
+
--il-panel-strong: rgb(11 26 49 / 72%);
|
|
262
|
+
--il-rule-color: rgb(255 255 255 / 30%);
|
|
263
|
+
color-scheme: dark;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/*
|
|
267
|
+
* Density: type scale and spacing. `regular` is the default; `compact` tones everything down for
|
|
268
|
+
* dense lecture slides, `relaxed` is for keynote-style talks.
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
:root,
|
|
272
|
+
.il-density-regular {
|
|
273
|
+
--il-gap: 36px;
|
|
274
|
+
--il-leading: 1.45;
|
|
275
|
+
--il-pad-x: 64px;
|
|
276
|
+
--il-pad-y: 46px;
|
|
277
|
+
--il-size-body: 20px;
|
|
278
|
+
--il-size-display: 54px;
|
|
279
|
+
--il-size-h1: 34px;
|
|
280
|
+
--il-size-h2: 25px;
|
|
281
|
+
--il-size-h3: 21px;
|
|
282
|
+
--il-size-huge: 104px;
|
|
283
|
+
--il-size-small: 15px;
|
|
284
|
+
--il-size-tiny: 11.5px;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.il-density-compact {
|
|
288
|
+
--il-gap: 28px;
|
|
289
|
+
--il-leading: 1.4;
|
|
290
|
+
--il-pad-x: 52px;
|
|
291
|
+
--il-pad-y: 38px;
|
|
292
|
+
--il-size-body: 17px;
|
|
293
|
+
--il-size-display: 42px;
|
|
294
|
+
--il-size-h1: 28px;
|
|
295
|
+
--il-size-h2: 21px;
|
|
296
|
+
--il-size-h3: 18px;
|
|
297
|
+
--il-size-huge: 80px;
|
|
298
|
+
--il-size-small: 13.5px;
|
|
299
|
+
--il-size-tiny: 10.5px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.il-density-relaxed {
|
|
303
|
+
--il-gap: 44px;
|
|
304
|
+
--il-leading: 1.4;
|
|
305
|
+
--il-pad-x: 72px;
|
|
306
|
+
--il-pad-y: 52px;
|
|
307
|
+
--il-size-body: 24px;
|
|
308
|
+
--il-size-display: 68px;
|
|
309
|
+
--il-size-h1: 42px;
|
|
310
|
+
--il-size-h2: 30px;
|
|
311
|
+
--il-size-h3: 25px;
|
|
312
|
+
--il-size-huge: 128px;
|
|
313
|
+
--il-size-small: 17px;
|
|
314
|
+
--il-size-tiny: 12.5px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* Code blocks follow the surface */
|
|
318
|
+
.slidev-layout {
|
|
319
|
+
--slidev-code-background: var(--il-code-bg);
|
|
320
|
+
--slidev-code-font-size: calc(var(--il-size-small) - 1px);
|
|
321
|
+
--slidev-code-foreground: var(--il-fg);
|
|
322
|
+
--slidev-code-line-height: 1.55;
|
|
323
|
+
--slidev-code-padding: 12px 16px;
|
|
324
|
+
}
|