@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.
Files changed (82) hide show
  1. package/LICENSE +45 -0
  2. package/README.md +592 -2
  3. package/assets/logos/block-i-blue.svg +54 -0
  4. package/assets/logos/block-i-full.svg +54 -0
  5. package/assets/logos/block-i-orange.svg +54 -0
  6. package/assets/logos/wordmark-blue.svg +94 -0
  7. package/assets/logos/wordmark-formal-blue.svg +234 -0
  8. package/assets/logos/wordmark-formal-full.svg +234 -0
  9. package/assets/logos/wordmark-formal-orange.svg +234 -0
  10. package/assets/logos/wordmark-full.svg +94 -0
  11. package/assets/logos/wordmark-orange.svg +94 -0
  12. package/assets/logos/wordmark-vertical-blue.svg +94 -0
  13. package/assets/logos/wordmark-vertical-full.svg +94 -0
  14. package/assets/logos/wordmark-vertical-orange.svg +94 -0
  15. package/citations/engine.ts +738 -0
  16. package/citations/errors.ts +79 -0
  17. package/citations/plugin.ts +137 -0
  18. package/citations/styles.ts +300 -0
  19. package/citations/syntax.ts +357 -0
  20. package/components/bibliography.vue +185 -0
  21. package/components/callout.vue +42 -0
  22. package/components/card.vue +37 -0
  23. package/components/cite.vue +62 -0
  24. package/components/frame.vue +71 -0
  25. package/components/illinois-logo.vue +45 -0
  26. package/components/math-morph.vue +252 -0
  27. package/components/qr-code.vue +51 -0
  28. package/components/stat.vue +43 -0
  29. package/components/steps.vue +77 -0
  30. package/global.d.ts +14 -0
  31. package/internal/brand-logo.vue +48 -0
  32. package/internal/citations.ts +206 -0
  33. package/internal/kicker.vue +13 -0
  34. package/internal/layout-root.vue +42 -0
  35. package/internal/pattern.vue +20 -0
  36. package/internal/split.vue +147 -0
  37. package/internal/theme.ts +878 -0
  38. package/layouts/agenda.vue +82 -0
  39. package/layouts/appendix-right.vue +15 -0
  40. package/layouts/appendix.vue +25 -0
  41. package/layouts/canvas.vue +21 -0
  42. package/layouts/center.vue +17 -0
  43. package/layouts/compare.vue +48 -0
  44. package/layouts/cover-right.vue +15 -0
  45. package/layouts/cover.vue +170 -0
  46. package/layouts/default.vue +15 -0
  47. package/layouts/end-right.vue +15 -0
  48. package/layouts/end.vue +89 -0
  49. package/layouts/fact-right.vue +15 -0
  50. package/layouts/fact.vue +25 -0
  51. package/layouts/figure.vue +43 -0
  52. package/layouts/grid.vue +33 -0
  53. package/layouts/iframe-left.vue +16 -0
  54. package/layouts/iframe-right.vue +16 -0
  55. package/layouts/image-left.vue +16 -0
  56. package/layouts/image-right.vue +16 -0
  57. package/layouts/image.vue +40 -0
  58. package/layouts/media-left.vue +17 -0
  59. package/layouts/media-right.vue +17 -0
  60. package/layouts/people.vue +98 -0
  61. package/layouts/quote-right.vue +15 -0
  62. package/layouts/quote.vue +41 -0
  63. package/layouts/references.vue +36 -0
  64. package/layouts/section-right.vue +15 -0
  65. package/layouts/section.vue +53 -0
  66. package/layouts/statement-right.vue +15 -0
  67. package/layouts/statement.vue +30 -0
  68. package/layouts/two-cols-header.vue +32 -0
  69. package/layouts/two-cols.vue +31 -0
  70. package/package.json +114 -4
  71. package/setup/mermaid.ts +73 -0
  72. package/setup/shiki.ts +147 -0
  73. package/setup/transformers.ts +21 -0
  74. package/setup/unocss.ts +34 -0
  75. package/setup/vite-plugins.ts +8 -0
  76. package/slide-top.vue +149 -0
  77. package/styles/base.css +309 -0
  78. package/styles/components.css +336 -0
  79. package/styles/index.ts +19 -0
  80. package/styles/layouts.css +1242 -0
  81. package/styles/looks.css +307 -0
  82. package/styles/tokens.css +324 -0
@@ -0,0 +1,336 @@
1
+ /* Component styles */
2
+
3
+ /* ---------- Cite ---------- */
4
+
5
+ .il-cite {
6
+ color: var(--il-muted);
7
+ cursor: help;
8
+ font-size: 0.9em;
9
+ font-variant-numeric: tabular-nums;
10
+ white-space: nowrap;
11
+ }
12
+
13
+ .il-cite-missing,
14
+ .il-bibliography-error {
15
+ color: var(--il-error);
16
+ }
17
+
18
+ .il-cite-missing {
19
+ text-decoration: underline wavy;
20
+ }
21
+
22
+ /* ---------- Bibliography ---------- */
23
+
24
+ .il-bibliography {
25
+ font-size: calc(var(--il-size-small) * var(--il-bib-scale, 1));
26
+ line-height: 1.4;
27
+ }
28
+
29
+ .il-bibliography ol {
30
+ column-gap: var(--il-gap);
31
+ columns: var(--il-bib-columns, 1);
32
+ list-style: none;
33
+ margin: 0;
34
+ padding: 0;
35
+ }
36
+
37
+ .slidev-layout .il-bibliography li {
38
+ break-inside: avoid;
39
+ margin: 0 0 0.75em;
40
+ padding: 0 0 0 1.6em;
41
+ text-indent: -1.6em;
42
+ }
43
+
44
+ .slidev-layout .il-bibliography li::before {
45
+ display: none;
46
+ }
47
+
48
+ .slidev-layout .il-bibliography-numeric li {
49
+ display: grid;
50
+ grid-template-columns: 2.4em minmax(0, 1fr);
51
+ padding: 0;
52
+ text-indent: 0;
53
+ }
54
+
55
+ .il-bibliography-number {
56
+ color: var(--il-accent-text);
57
+ font-variant-numeric: tabular-nums;
58
+ font-weight: 600;
59
+ }
60
+
61
+ .il-bibliography a {
62
+ text-decoration-color: var(--il-rule-color);
63
+ word-break: break-all;
64
+ }
65
+
66
+ .il-bibliography-empty {
67
+ color: var(--il-muted);
68
+ }
69
+
70
+ /* ---------- Card ---------- */
71
+
72
+ .il-card {
73
+ border-radius: var(--il-radius);
74
+ font-size: 0.92em;
75
+ min-width: 0;
76
+ padding: 18px 22px;
77
+ }
78
+
79
+ .il-card-panel {
80
+ background: var(--il-panel);
81
+ }
82
+
83
+ .il-card-outline {
84
+ border: var(--il-rule) solid var(--il-rule-color);
85
+ }
86
+
87
+ .il-card-accent {
88
+ background: var(--il-panel);
89
+ border-radius: 0 0 var(--il-radius) var(--il-radius);
90
+ border-top: 3px solid var(--il-accent);
91
+ }
92
+
93
+ .il-card-plain {
94
+ padding: 0;
95
+ }
96
+
97
+ .slidev-layout .il-card-label {
98
+ color: var(--il-accent-text);
99
+ font-family: var(--il-font-display);
100
+ font-size: var(--il-size-tiny);
101
+ font-weight: 650;
102
+ letter-spacing: 0.14em;
103
+ margin: 0 0 0.5em;
104
+ text-transform: uppercase;
105
+ }
106
+
107
+ .slidev-layout .il-card-title {
108
+ font-size: var(--il-size-h3);
109
+ margin: 0 0 0.35em;
110
+ }
111
+
112
+ .il-card-body > :last-child {
113
+ margin-bottom: 0;
114
+ }
115
+
116
+ /* ---------- Callout ---------- */
117
+
118
+ /*
119
+ * A rule and label above the text (no fill). Notes, tips and questions use the heading color,
120
+ * important callouts the accent and warnings gold (`light-dark()` picks the shade for the surface).
121
+ */
122
+ .il-callout {
123
+ --il-callout: var(--il-heading);
124
+ border-top: 2px solid var(--il-callout);
125
+ font-size: 0.92em;
126
+ margin: 0.6em 0 1em;
127
+ padding-top: 10px;
128
+ }
129
+
130
+ .il-callout-important {
131
+ --il-callout: var(--il-accent-text);
132
+ }
133
+
134
+ .il-callout-warning {
135
+ --il-callout: var(--il-warning);
136
+ }
137
+
138
+ .slidev-layout .il-callout-label {
139
+ color: var(--il-callout);
140
+ font-family: var(--il-font-display);
141
+ font-size: var(--il-size-tiny);
142
+ font-weight: 700;
143
+ letter-spacing: 0.14em;
144
+ margin: 0 0 0.3em;
145
+ text-transform: uppercase;
146
+ }
147
+
148
+ .il-callout-body > :last-child {
149
+ margin-bottom: 0;
150
+ }
151
+
152
+ /* ---------- Stat ---------- */
153
+
154
+ .il-stat {
155
+ border-top: 1.5px solid var(--il-heading);
156
+ display: flex;
157
+ flex-direction: column;
158
+ gap: 6px;
159
+ min-width: 0;
160
+ padding-top: 12px;
161
+ }
162
+
163
+ .il-stat-value {
164
+ color: var(--il-heading);
165
+ font-family: var(--il-font-display);
166
+ font-size: calc(var(--il-size-display) * 0.95);
167
+ font-variant-numeric: tabular-nums;
168
+ font-weight: 700;
169
+ letter-spacing: -0.035em;
170
+ line-height: 1;
171
+ }
172
+
173
+ .il-stat-accent .il-stat-value {
174
+ color: var(--il-accent);
175
+ }
176
+
177
+ .il-stat-label {
178
+ color: var(--il-fg);
179
+ line-height: 1.3;
180
+ }
181
+
182
+ .il-stat-note {
183
+ color: var(--il-muted);
184
+ font-size: var(--il-size-tiny);
185
+ }
186
+
187
+ /* ---------- Steps ---------- */
188
+
189
+ .slidev-layout ol.il-steps {
190
+ display: grid;
191
+ gap: 22px;
192
+ grid-template-columns: repeat(var(--il-steps, 3), minmax(0, 1fr));
193
+ list-style: none;
194
+ margin: 0.5em 0 1em;
195
+ padding: 0;
196
+ }
197
+
198
+ .slidev-layout .il-step {
199
+ border-top: 2px solid var(--il-rule-color);
200
+ display: flex;
201
+ flex-direction: column;
202
+ gap: 4px;
203
+ margin: 0;
204
+ padding: 12px 0 0;
205
+ transition: opacity 0.2s;
206
+ }
207
+
208
+ .il-step-number {
209
+ color: var(--il-accent-text);
210
+ font-family: var(--il-font-display);
211
+ font-size: var(--il-size-small);
212
+ font-variant-numeric: tabular-nums;
213
+ font-weight: 700;
214
+ }
215
+
216
+ .il-step-title {
217
+ color: var(--il-heading);
218
+ font-family: var(--il-font-display);
219
+ font-weight: 600;
220
+ line-height: 1.25;
221
+ }
222
+
223
+ .il-step-text {
224
+ color: var(--il-muted);
225
+ font-size: var(--il-size-small);
226
+ line-height: 1.35;
227
+ }
228
+
229
+ .slidev-layout .il-step.il-current {
230
+ border-top-color: var(--il-accent);
231
+ }
232
+
233
+ .slidev-layout .il-step.il-done {
234
+ border-top-color: var(--il-heading);
235
+ }
236
+
237
+ .il-step.il-todo {
238
+ opacity: 0.45;
239
+ }
240
+
241
+ .slidev-layout ol.il-steps-vertical {
242
+ gap: 0;
243
+ grid-template-columns: minmax(0, 1fr);
244
+ }
245
+
246
+ .slidev-layout .il-steps-vertical .il-step {
247
+ border-bottom: var(--il-rule) solid var(--il-rule-color);
248
+ border-top: 0;
249
+ column-gap: 0.6em;
250
+ display: grid;
251
+ grid-template-columns: 2.4em minmax(0, 1fr);
252
+ padding: 0.5em 0;
253
+ }
254
+
255
+ .slidev-layout .il-steps-vertical .il-step.il-current {
256
+ border-bottom-color: var(--il-accent);
257
+ }
258
+
259
+ .il-steps-vertical .il-step-number {
260
+ grid-row: span 2;
261
+ }
262
+
263
+ /* ---------- Frame ---------- */
264
+
265
+ .il-frame-figure {
266
+ margin: 0;
267
+ }
268
+
269
+ /* `corner: all` (default) rounds every corner; the others round one corner, like the Block I */
270
+ .il-frame {
271
+ border-radius: var(--il-radius);
272
+ overflow: hidden;
273
+ }
274
+
275
+ .il-frame-tr {
276
+ border-radius: 0 var(--il-frame-radius) 0 0;
277
+ }
278
+
279
+ .il-frame-tl {
280
+ border-radius: var(--il-frame-radius) 0 0 0;
281
+ }
282
+
283
+ .il-frame-bl {
284
+ border-radius: 0 0 0 var(--il-frame-radius);
285
+ }
286
+
287
+ .il-frame-br {
288
+ border-radius: 0 0 var(--il-frame-radius) 0;
289
+ }
290
+
291
+ .il-frame-none {
292
+ border-radius: 0;
293
+ }
294
+
295
+ .il-frame > img {
296
+ display: block;
297
+ height: 100%;
298
+ width: 100%;
299
+ }
300
+
301
+ /* ---------- IllinoisLogo / QrCode ---------- */
302
+
303
+ .il-logo {
304
+ display: inline-block;
305
+ height: 2em;
306
+ vertical-align: middle;
307
+ width: auto;
308
+ }
309
+
310
+ .il-qr {
311
+ display: block;
312
+ }
313
+
314
+ /* ---------- MathMorph ---------- */
315
+
316
+ .il-math-morph {
317
+ position: relative;
318
+ }
319
+
320
+ .il-math-morph-display {
321
+ margin: 0.6em 0 1em;
322
+ text-align: center;
323
+ }
324
+
325
+ /* Text symbols become inline blocks so they can be transformed */
326
+ .il-math-morph
327
+ .katex-html
328
+ :is(.mbin, .mclose, .minner, .mop, .mopen, .mord, .mpunct, .mrel):not(:has(*)) {
329
+ display: inline-block;
330
+ }
331
+
332
+ .il-math-morph-ghosts {
333
+ inset: 0;
334
+ pointer-events: none;
335
+ position: absolute;
336
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @file Theme stylesheet entry. Fonts are bundled so decks work offline.
3
+ */
4
+
5
+ import "@fontsource-variable/atkinson-hyperlegible-next/wght-italic.css";
6
+ import "@fontsource-variable/atkinson-hyperlegible-next/wght.css";
7
+ import "@fontsource-variable/montserrat/wght-italic.css";
8
+ import "@fontsource-variable/montserrat/wght.css";
9
+ import "@fontsource-variable/source-code-pro/wght.css";
10
+ import "@fontsource-variable/source-sans-3/wght-italic.css";
11
+ import "@fontsource-variable/source-sans-3/wght.css";
12
+
13
+ // Theme styles (independent of import order: tokens only define custom properties, and later
14
+ // rules never rely on source order to override earlier files)
15
+ import "./base.css";
16
+ import "./components.css";
17
+ import "./layouts.css";
18
+ import "./looks.css";
19
+ import "./tokens.css";