@wakeful-cloud/slidev-theme-illinois 0.0.0-stage → 0.1.1

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
package/setup/shiki.ts ADDED
@@ -0,0 +1,147 @@
1
+ /**
2
+ * @file Code highlighting: light and dark Illinois themes derived from the brand palette (Altgeld
3
+ * and orange keywords, Industrial blue functions and types, Berry-tinted strings, Earth numbers).
4
+ * Every color meets 4.5:1 on every surface's `--il-code-bg`. Monaco editors use the same themes;
5
+ * backgrounds come from the theme's surface tokens.
6
+ */
7
+
8
+ import {defineShikiSetup, type ShikiSetupReturn} from "@slidev/types";
9
+
10
+ /**
11
+ * Colors of a highlighting theme
12
+ */
13
+ interface Palette {
14
+ /**
15
+ * Comments
16
+ */
17
+ comment: string;
18
+
19
+ /**
20
+ * Default text and variables
21
+ */
22
+ fg: string;
23
+
24
+ /**
25
+ * Functions, types, classes and tags
26
+ */
27
+ fn: string;
28
+
29
+ /**
30
+ * Keywords and storage modifiers
31
+ */
32
+ keyword: string;
33
+
34
+ /**
35
+ * Numbers, constants and attributes
36
+ */
37
+ number: string;
38
+
39
+ /**
40
+ * Punctuation and operators
41
+ */
42
+ punctuation: string;
43
+
44
+ /**
45
+ * Strings
46
+ */
47
+ string: string;
48
+ }
49
+
50
+ /**
51
+ * Build a TextMate theme from a palette
52
+ * @param name Theme name
53
+ * @param type Light or dark
54
+ * @param palette Colors
55
+ * @returns Theme registration
56
+ */
57
+ const illinoisTheme = (name: string, type: "dark" | "light", palette: Palette) => ({
58
+ // Editor colors apply to `{monaco}` blocks: no current-line bar and no rainbow brackets
59
+ colors: {
60
+ "editor.background": "#00000000",
61
+ "editor.foreground": palette.fg,
62
+ "editor.lineHighlightBackground": "#00000000",
63
+ "editor.lineHighlightBorder": "#00000000",
64
+ ...Object.fromEntries(
65
+ [1, 2, 3, 4, 5, 6].map(level => [
66
+ `editorBracketHighlight.foreground${level}`,
67
+ palette.punctuation,
68
+ ]),
69
+ ),
70
+ },
71
+ name,
72
+ tokenColors: [
73
+ {settings: {foreground: palette.fg}},
74
+ {
75
+ scope: ["comment", "punctuation.definition.comment"],
76
+ settings: {fontStyle: "italic", foreground: palette.comment},
77
+ },
78
+ {
79
+ scope: [
80
+ "keyword",
81
+ "markup.heading",
82
+ "storage",
83
+ "storage.modifier",
84
+ "storage.type",
85
+ "variable.language",
86
+ ],
87
+ settings: {foreground: palette.keyword},
88
+ },
89
+ {
90
+ scope: [
91
+ "entity.name.class",
92
+ "entity.name.function",
93
+ "entity.name.tag",
94
+ "entity.name.type",
95
+ "entity.other.inherited-class",
96
+ "meta.function-call",
97
+ "support.class",
98
+ "support.function",
99
+ "support.type",
100
+ ],
101
+ settings: {foreground: palette.fn},
102
+ },
103
+ {
104
+ scope: ["markup.inline.raw", "punctuation.definition.string", "string"],
105
+ settings: {foreground: palette.string},
106
+ },
107
+ {
108
+ scope: [
109
+ "constant.character",
110
+ "constant.language",
111
+ "constant.numeric",
112
+ "constant.other",
113
+ "entity.other.attribute-name",
114
+ "support.constant",
115
+ ],
116
+ settings: {foreground: palette.number},
117
+ },
118
+ {
119
+ scope: ["keyword.operator", "meta.brace", "punctuation"],
120
+ settings: {foreground: palette.punctuation},
121
+ },
122
+ ],
123
+ type,
124
+ });
125
+
126
+ export default defineShikiSetup((): ShikiSetupReturn => ({
127
+ themes: {
128
+ dark: illinoisTheme("illinois-dark", "dark", {
129
+ comment: "#9eabbf",
130
+ fg: "#e3e8ef",
131
+ fn: "#8fb3e8",
132
+ keyword: "#ff8a4c",
133
+ number: "#ffc49b",
134
+ punctuation: "#aab6c8",
135
+ string: "#f0b3d4",
136
+ }),
137
+ light: illinoisTheme("illinois-light", "light", {
138
+ comment: "#5a6577",
139
+ fg: "#1c2a3f",
140
+ fn: "#1d58a7",
141
+ keyword: "#b5390d",
142
+ number: "#7d3e13",
143
+ punctuation: "#5a6577",
144
+ string: "#8a1c5f",
145
+ }),
146
+ },
147
+ }));
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @file Markdown transformer that rewrites Pandoc-style citations (`[@key]`,
3
+ * `[see @a; @b, p. 3]`) into `<Cite>` components.
4
+ */
5
+
6
+ import {defineTransformersSetup} from "@slidev/types";
7
+ import {findCitations} from "#citations/syntax.ts";
8
+
9
+ export default defineTransformersSetup(() => ({
10
+ pre: [
11
+ ctx => {
12
+ for (const match of findCitations(ctx.s.original)) {
13
+ // The items are URI-encoded JSON so they survive as a static attribute value. Nothing
14
+ // written here contains a quote (`'` is the only one `encodeURIComponent` leaves), so a
15
+ // citation that is rewritten inside a quoted attribute after all cannot end that attribute
16
+ const items = encodeURIComponent(JSON.stringify(match.items)).replaceAll("'", "%27");
17
+ ctx.s.overwrite(match.start, match.end, `<Cite items=${items} />`);
18
+ }
19
+ },
20
+ ],
21
+ }));
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @file UnoCSS theme: brand colors (`text-il-orange`, `bg-il-blue`, ...) and surface-aware tokens
3
+ * (`text-accent`, `text-muted`, `bg-panel`, `border-rule`, ...).
4
+ */
5
+
6
+ import {defineUnoSetup} from "@slidev/types";
7
+
8
+ export default defineUnoSetup(() => ({
9
+ theme: {
10
+ colors: {
11
+ // Surface-aware tokens (follow the slide surface and dark mode): accent, heading, muted,
12
+ // panel, rule. Brand colors (brand.illinois.edu): il-*. `accent` is the small-text shade,
13
+ // which meets the contrast ratios for text and graphics alike
14
+ accent: "var(--il-accent-text)",
15
+ heading: "var(--il-heading)",
16
+ il: {
17
+ altgeld: "#c84113",
18
+ arches: "#009fd4",
19
+ berry: "#5c0e41",
20
+ blue: "#13294b",
21
+ earth: "#7d3e13",
22
+ harvest: "#fcb316",
23
+ industrial: "#1d58a7",
24
+ orange: "#ff5f05",
25
+ patina: "#007e8e",
26
+ prairie: "#006230",
27
+ storm: "#707372",
28
+ },
29
+ muted: "var(--il-muted)",
30
+ panel: "var(--il-panel)",
31
+ rule: "var(--il-rule-color)",
32
+ },
33
+ },
34
+ }));
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @file Registers the theme's Vite plugins.
3
+ */
4
+
5
+ import {defineVitePluginsSetup} from "@slidev/types";
6
+ import {createCitationsPlugin} from "#citations/plugin.ts";
7
+
8
+ export default defineVitePluginsSetup(options => [createCitationsPlugin(options)]);
package/slide-top.vue ADDED
@@ -0,0 +1,149 @@
1
+ <!--
2
+ Per-slide overlay: footer chrome (Illinois mark, footer text, sponsor logos, page number) and the
3
+ per-slide reference list.
4
+ -->
5
+
6
+ <script setup lang="ts">
7
+ import {useSlideContext} from "@slidev/client";
8
+ import {computed, onBeforeUnmount, ref, watch} from "vue";
9
+ import BrandLogo from "#internal/brand-logo.vue";
10
+ import {citations, entriesFor} from "#internal/citations.ts";
11
+ import {
12
+ appendixStart,
13
+ type MarkKind,
14
+ markUrl,
15
+ mediaShare,
16
+ normalizeBrands,
17
+ SPLIT_SIDES,
18
+ useIllinois,
19
+ } from "#internal/theme.ts";
20
+
21
+ const {$nav} = useSlideContext();
22
+ const {chrome, classes, config, darkBackground, frontmatter, layout, markVariant, page} =
23
+ useIllinois();
24
+
25
+ const numeric = computed(() => citations.value.numeric);
26
+ const showFooter = computed(() => chrome.value !== "none");
27
+ const showFooterText = computed(() => chrome.value === "full");
28
+
29
+ // Illinois mark in the footer (`footerMark`: `block-i` | `none` | `wordmark`)
30
+ const footerMark = computed<MarkKind | undefined>(() => {
31
+ const value = frontmatter.value["footerMark"] ?? config.value.footerMark;
32
+ return value === "block-i" || value === "wordmark" ? value : undefined;
33
+ });
34
+
35
+ // Sponsor logos in the footer (`footerSponsors`)
36
+ const footerSponsors = computed(() => {
37
+ const value = frontmatter.value["footerSponsors"] ?? config.value.footerSponsors;
38
+ return value === true ? normalizeBrands(config.value.sponsors) : [];
39
+ });
40
+
41
+ const footerText = computed(() => {
42
+ const value = frontmatter.value["footer"] ?? config.value.footer;
43
+ return typeof value === "string" ? value : undefined;
44
+ });
45
+
46
+ // Route number of the first `appendix` slide (slides after it are numbered A1, A2, ...)
47
+ const appendixAt = computed(() => appendixStart($nav.value.slides));
48
+
49
+ const pageLabel = computed(() => {
50
+ const start = appendixAt.value;
51
+ return start !== undefined && page.value > start ? `A${page.value - start}` : String(page.value);
52
+ });
53
+
54
+ // References cited on this slide (unless disabled, or this is the references slide itself)
55
+ const references = computed(() => {
56
+ const override = frontmatter.value["citationFooter"];
57
+ const enabled = typeof override === "boolean" ? override : config.value.citationFooter;
58
+ const keys = citations.value.slides[page.value];
59
+
60
+ if (!enabled || layout.value === "references" || !keys?.length) {
61
+ return [];
62
+ }
63
+ return entriesFor(keys, citations.value);
64
+ });
65
+
66
+ // On split layouts with edge-to-edge media, keep the chrome within the content column
67
+ const chromeStyle = computed<Record<string, string>>(() => {
68
+ const side = SPLIT_SIDES[layout.value];
69
+ if (side === undefined || frontmatter.value["frame"] === "inset") {
70
+ return {};
71
+ }
72
+
73
+ const inner = `calc(${(mediaShare(frontmatter.value) * 100).toFixed(3)}% + var(--il-gap))`;
74
+
75
+ return side === "right" ? {"--il-chrome-right": inner} : {"--il-chrome-left": inner};
76
+ });
77
+
78
+ // Reserve space at the bottom of the slide for the reference list: the measured height is exposed
79
+ // as `--il-refs-height` on the slide page, which layouts add to their bottom padding
80
+ const refsEl = ref<HTMLElement>();
81
+ let observer: ResizeObserver | undefined = undefined;
82
+
83
+ watch(refsEl, (el, previous) => {
84
+ observer?.disconnect();
85
+
86
+ if (previous && !el) {
87
+ previous.closest<HTMLElement>(".slidev-page")?.style.removeProperty("--il-refs-height");
88
+ }
89
+ if (!el) {
90
+ return;
91
+ }
92
+
93
+ observer = new ResizeObserver(entries => {
94
+ for (const entry of entries) {
95
+ const height = entry.borderBoxSize[0]?.blockSize ?? entry.contentRect.height;
96
+ el.closest<HTMLElement>(".slidev-page")?.style.setProperty(
97
+ "--il-refs-height",
98
+ `${Math.ceil(height)}px`,
99
+ );
100
+ }
101
+ });
102
+ observer.observe(el);
103
+ });
104
+
105
+ onBeforeUnmount(() => observer?.disconnect());
106
+ </script>
107
+
108
+ <template>
109
+ <div
110
+ v-if="showFooter || references.length"
111
+ class="il-chrome"
112
+ :class="classes"
113
+ :style="chromeStyle"
114
+ >
115
+ <div v-if="references.length" ref="refsEl" class="il-slide-refs">
116
+ <ol>
117
+ <li v-for="entry in references" :key="entry.key">
118
+ <span v-if="numeric" class="il-slide-refs-number">[{{ entry.n }}]</span>
119
+ <!-- oxlint-disable-next-line vue/no-v-html -- formatted by citeproc from the user's bibliography -->
120
+ <span v-html="entry.html" />
121
+ </li>
122
+ </ol>
123
+ </div>
124
+
125
+ <div v-if="showFooter" class="il-footer">
126
+ <div class="il-footer-start">
127
+ <img
128
+ v-if="showFooterText && footerMark"
129
+ alt="University of Illinois Urbana-Champaign"
130
+ class="il-footer-logo"
131
+ :class="`il-mark-${footerMark}`"
132
+ :src="markUrl(footerMark, markVariant)"
133
+ />
134
+ <span v-if="showFooterText && footerText" class="il-footer-text">{{ footerText }}</span>
135
+ </div>
136
+ <div class="il-footer-end">
137
+ <div v-if="showFooterText && footerSponsors.length" class="il-footer-sponsors">
138
+ <BrandLogo
139
+ v-for="(brand, index) in footerSponsors"
140
+ :key="index"
141
+ :brand="brand"
142
+ :dark="darkBackground"
143
+ />
144
+ </div>
145
+ <span class="il-footer-page">{{ pageLabel }}</span>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </template>
@@ -0,0 +1,309 @@
1
+ /*
2
+ * Base typography. Applies to every `.slidev-layout`, including Slidev's built-in layouts
3
+ * (center, full, none, iframe, ...), so the whole deck reads as one system.
4
+ */
5
+
6
+ .slidev-page {
7
+ background: var(--il-bg);
8
+ }
9
+
10
+ /*
11
+ * Slidev paints the slide box grey (#121212) in dark mode, which shows through mid-transition
12
+ * (e.g. halfway through a fade). Use the deck background instead. `!important` because Slidev's
13
+ * scoped, dark-mode rule is more specific than any theme selector.
14
+ */
15
+ .slidev-slide-content {
16
+ background: var(--slidev-slide-container-background) !important;
17
+ }
18
+
19
+ .slidev-layout {
20
+ background: var(--il-bg);
21
+ box-sizing: border-box;
22
+ color: var(--il-fg);
23
+ font-family: var(--il-font-body);
24
+ font-feature-settings: "kern", "liga";
25
+ font-size: var(--il-size-body);
26
+ height: 100%;
27
+ line-height: var(--il-leading);
28
+ overflow: hidden;
29
+ padding: var(--il-pad-y) var(--il-pad-x) calc(var(--il-pad-y) + var(--il-refs-height, 0px));
30
+ position: relative;
31
+ text-rendering: optimizeLegibility;
32
+ -webkit-font-smoothing: antialiased;
33
+
34
+ pre,
35
+ code {
36
+ user-select: text;
37
+ }
38
+
39
+ /* Headings */
40
+
41
+ h1,
42
+ h2,
43
+ h3,
44
+ h4 {
45
+ color: var(--il-heading);
46
+ font-family: var(--il-font-display);
47
+ font-weight: 650;
48
+ letter-spacing: -0.018em;
49
+ line-height: 1.15;
50
+ margin: 0;
51
+ text-wrap: balance;
52
+ }
53
+
54
+ h1 {
55
+ font-size: var(--il-size-h1);
56
+ margin-bottom: 0.7em;
57
+ }
58
+
59
+ h2 {
60
+ font-size: var(--il-size-h2);
61
+ margin: 1.1em 0 0.45em;
62
+ }
63
+
64
+ h3 {
65
+ font-size: var(--il-size-h3);
66
+ font-weight: 600;
67
+ letter-spacing: -0.01em;
68
+ margin: 1em 0 0.35em;
69
+ }
70
+
71
+ h4 {
72
+ font-size: var(--il-size-body);
73
+ font-weight: 600;
74
+ letter-spacing: 0;
75
+ margin: 1em 0 0.3em;
76
+ }
77
+
78
+ h5,
79
+ h6,
80
+ .il-kicker {
81
+ color: var(--il-accent-text);
82
+ font-family: var(--il-font-display);
83
+ font-size: var(--il-size-tiny);
84
+ font-weight: 650;
85
+ letter-spacing: 0.14em;
86
+ line-height: 1.3;
87
+ margin: 0 0 0.9em;
88
+ text-transform: uppercase;
89
+ }
90
+
91
+ h1 + h2,
92
+ h1 + h3 {
93
+ color: var(--il-muted);
94
+ font-family: var(--il-font-body);
95
+ font-weight: 400;
96
+ letter-spacing: 0;
97
+ margin-top: -0.35em;
98
+ }
99
+
100
+ :is(h1, h2, h3, h4):first-child {
101
+ margin-top: 0;
102
+ }
103
+
104
+ /* Text */
105
+
106
+ p {
107
+ margin: 0 0 0.75em;
108
+ text-wrap: pretty;
109
+ }
110
+
111
+ strong,
112
+ b {
113
+ font-weight: 650;
114
+ }
115
+
116
+ em,
117
+ i {
118
+ font-style: italic;
119
+ }
120
+
121
+ small,
122
+ .il-small {
123
+ font-size: var(--il-size-small);
124
+ }
125
+
126
+ /* Larger, muted introductory paragraph */
127
+ .il-lead {
128
+ color: var(--il-muted);
129
+ font-size: calc(var(--il-size-body) * 1.15);
130
+ line-height: 1.4;
131
+ }
132
+
133
+ mark {
134
+ background: color-mix(in srgb, var(--il-accent) 28%, transparent);
135
+ border-radius: min(var(--il-radius), 2px);
136
+ box-decoration-break: clone;
137
+ color: inherit;
138
+ padding: 0 0.15em;
139
+ }
140
+
141
+ a {
142
+ color: inherit;
143
+ text-decoration: underline;
144
+ text-decoration-color: var(--il-accent);
145
+ text-decoration-thickness: 0.08em;
146
+ text-underline-offset: 0.18em;
147
+ transition: color 0.15s;
148
+ }
149
+
150
+ a:hover {
151
+ color: var(--il-accent-text);
152
+ }
153
+
154
+ hr {
155
+ border: 0;
156
+ border-top: var(--il-rule) solid var(--il-rule-color);
157
+ margin: 1.2em 0;
158
+ }
159
+
160
+ /* Lists */
161
+
162
+ ul,
163
+ ol {
164
+ margin: 0 0 0.8em;
165
+ padding-left: 1.15em;
166
+ }
167
+
168
+ ul {
169
+ list-style: none;
170
+ }
171
+
172
+ ul > li {
173
+ position: relative;
174
+ }
175
+
176
+ ul > li::before {
177
+ background: var(--il-accent);
178
+ content: "";
179
+ height: 0.36em;
180
+ left: -1.05em;
181
+ position: absolute;
182
+ top: calc(0.5lh - 0.18em);
183
+ width: 0.36em;
184
+ }
185
+
186
+ ul ul > li::before {
187
+ background: transparent;
188
+ box-shadow: inset 0 0 0 1.5px var(--il-muted);
189
+ }
190
+
191
+ ol {
192
+ list-style: decimal;
193
+ }
194
+
195
+ ol > li::marker {
196
+ color: var(--il-accent-text);
197
+ font-family: var(--il-font-display);
198
+ font-size: 0.82em;
199
+ font-weight: 650;
200
+ }
201
+
202
+ li {
203
+ margin: 0 0 0.35em;
204
+ padding-left: 0.15em;
205
+ }
206
+
207
+ li > ul,
208
+ li > ol {
209
+ font-size: 0.92em;
210
+ margin: 0.3em 0 0.2em;
211
+ }
212
+
213
+ /* Tables: hairline rules, no boxes */
214
+
215
+ table {
216
+ border-collapse: collapse;
217
+ font-size: var(--il-size-small);
218
+ font-variant-numeric: tabular-nums;
219
+ margin: 0.4em 0 1em;
220
+ width: 100%;
221
+ }
222
+
223
+ thead th {
224
+ border-bottom: 1.5px solid var(--il-heading);
225
+ color: var(--il-heading);
226
+ font-family: var(--il-font-display);
227
+ font-size: 0.86em;
228
+ font-weight: 650;
229
+ text-align: left;
230
+ }
231
+
232
+ td,
233
+ th {
234
+ padding: 0.5em 0.9em 0.5em 0;
235
+ vertical-align: top;
236
+ }
237
+
238
+ tbody tr {
239
+ border-bottom: var(--il-rule) solid var(--il-rule-color);
240
+ }
241
+
242
+ /* Quotes */
243
+
244
+ blockquote {
245
+ border-left: 3px solid var(--il-accent);
246
+ color: var(--il-fg);
247
+ font-size: 1.02em;
248
+ margin: 0.6em 0 1em;
249
+ padding: 0.1em 0 0.1em 1em;
250
+ }
251
+
252
+ blockquote > :last-child {
253
+ margin-bottom: 0;
254
+ }
255
+
256
+ /* Code */
257
+
258
+ code {
259
+ font-family: var(--il-font-mono);
260
+ }
261
+
262
+ :not(pre) > code {
263
+ background: var(--il-panel-strong);
264
+ border-radius: min(var(--il-radius), 3px);
265
+ font-size: 0.8em;
266
+ font-weight: 500;
267
+ padding: 0.06em 0.28em;
268
+ }
269
+
270
+ pre,
271
+ .slidev-code {
272
+ border-radius: var(--il-radius);
273
+ }
274
+
275
+ .slidev-code-wrapper {
276
+ margin: 0.5em 0 1em;
277
+ }
278
+
279
+ kbd {
280
+ background: var(--il-panel);
281
+ border: 1px solid var(--il-rule-color);
282
+ border-bottom-width: 2px;
283
+ border-radius: min(var(--il-radius), 4px);
284
+ font-family: var(--il-font-mono);
285
+ font-size: 0.78em;
286
+ padding: 0.05em 0.35em;
287
+ }
288
+
289
+ /* Media */
290
+
291
+ img,
292
+ video {
293
+ max-width: 100%;
294
+ }
295
+
296
+ figure {
297
+ margin: 0;
298
+ }
299
+
300
+ figcaption {
301
+ color: var(--il-muted);
302
+ font-size: var(--il-size-small);
303
+ margin-top: 0.6em;
304
+ }
305
+
306
+ .katex {
307
+ font-size: 1.05em;
308
+ }
309
+ }