@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/LICENSE
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wakeful Cloud
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
--------------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
EXCLUSIONS
|
|
26
|
+
|
|
27
|
+
The MIT License above does not apply to the following material, which is
|
|
28
|
+
included for convenience and remains subject to its owners' terms:
|
|
29
|
+
|
|
30
|
+
1. University of Illinois marks. The files in `assets/logos/` (the Block I,
|
|
31
|
+
the Illinois wordmarks and their color variants) are trademarks of the
|
|
32
|
+
Board of Trustees of the University of Illinois. No license to these marks
|
|
33
|
+
is granted. Their use is governed by the University of Illinois brand
|
|
34
|
+
guidelines (https://brand.illinois.edu).
|
|
35
|
+
|
|
36
|
+
2. Screenshots. The images in `docs/screenshots/` show the marks above and a
|
|
37
|
+
third-party photograph (from https://github.com/slidevjs/slidev-covers,
|
|
38
|
+
originally published on Unsplash under the Unsplash License).
|
|
39
|
+
|
|
40
|
+
Third-party software and data used by this theme are not part of this
|
|
41
|
+
repository and are distributed under their own licenses, including the
|
|
42
|
+
npm dependencies listed in `package.json` (e.g. the bundled fonts under the
|
|
43
|
+
SIL Open Font License 1.1) and the Citation Style Language styles and locales
|
|
44
|
+
downloaded at runtime from https://github.com/citation-style-language
|
|
45
|
+
(CC BY-SA 3.0).
|
package/README.md
CHANGED
|
@@ -1,3 +1,593 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Illinois Slidev Theme
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@wakeful-cloud/slidev-theme-illinois)
|
|
4
|
+
[](https://github.com/wakeful-cloud/slidev-theme-illinois/actions/workflows/release.yml)
|
|
5
|
+
[](https://github.com/wakeful-cloud/slidev-theme-illinois/actions/workflows/deploy.yml)
|
|
6
|
+
|
|
7
|
+
A [Slidev](https://sli.dev) theme for the [University of Illinois Urbana-Champaign](https://illinois.edu):
|
|
8
|
+
four looks, 32 layouts (with mirrored variants), BibTeX citations in any CSL style, unit/co-author/sponsor branding and full
|
|
9
|
+
dark mode.
|
|
10
|
+
|
|
11
|
+
<picture>
|
|
12
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/cover-dark.png" />
|
|
13
|
+
<img alt="Cover slide" src="./docs/screenshots/layouts/cover.png" width="640" />
|
|
14
|
+
</picture>
|
|
15
|
+
|
|
16
|
+
## Contents
|
|
17
|
+
|
|
18
|
+
- [Quick start](#quick-start)
|
|
19
|
+
- [Looks](#looks)
|
|
20
|
+
- [Options](#options)
|
|
21
|
+
- [Layouts](#layouts)
|
|
22
|
+
- [Components](#components)
|
|
23
|
+
- [Citations](#citations)
|
|
24
|
+
- [Slidev features](#slidev-features)
|
|
25
|
+
- [Contributing](#contributing)
|
|
26
|
+
- [License](#license)
|
|
27
|
+
|
|
28
|
+
## Quick start
|
|
29
|
+
|
|
30
|
+
Add the theme to your `slides.md` headmatter; Slidev offers to install it on start
|
|
31
|
+
([more about themes](https://sli.dev/guide/theme-addon#use-theme)):
|
|
32
|
+
|
|
33
|
+
```yaml
|
|
34
|
+
---
|
|
35
|
+
theme: "@wakeful-cloud/slidev-theme-illinois"
|
|
36
|
+
title: My talk
|
|
37
|
+
authors:
|
|
38
|
+
- name: Jane Doe
|
|
39
|
+
affiliation: Siebel School of Computing and Data Science
|
|
40
|
+
- John Doe
|
|
41
|
+
date: December 2026
|
|
42
|
+
event: Conference 2026
|
|
43
|
+
themeConfig:
|
|
44
|
+
bibliography: ./references.bib
|
|
45
|
+
footer: My talk | Conference 2026
|
|
46
|
+
look: classic
|
|
47
|
+
---
|
|
48
|
+
# Title of the talk
|
|
49
|
+
|
|
50
|
+
Optional subtitle
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
[`example.md`](./example.md) demonstrates most layouts, components and options.
|
|
54
|
+
|
|
55
|
+
Everything a deck is built from is treated as part of the deck: only use slides, option values,
|
|
56
|
+
bibliography files, citation styles and embedded pages from sources you trust.
|
|
57
|
+
|
|
58
|
+
## Looks
|
|
59
|
+
|
|
60
|
+
`look` switches typography, colors, surfaces, patterns and component styling at once. Set it in
|
|
61
|
+
`themeConfig` (or per slide); individual options still override it.
|
|
62
|
+
|
|
63
|
+
Every look is light in light mode. The dark `blue` and `orange` surfaces are opt-in: set
|
|
64
|
+
`surface: blue` on the slides that should stand out, or `titleSurface` / `sectionSurface` deck-wide.
|
|
65
|
+
|
|
66
|
+
| Look | Character |
|
|
67
|
+
| ------------------- | --------------------------------------------------------------------------- |
|
|
68
|
+
| `bold` | Keynote style: heavy uppercase type, grid pattern, accent bars |
|
|
69
|
+
| `classic` (default) | Montserrat headings, rounded corners, orange accents, line pattern |
|
|
70
|
+
| `minimal` | Monochrome Illini Blue, light Montserrat, hairlines instead of fills |
|
|
71
|
+
| `swiss` | International Typographic Style: heavy type at extreme scale, rules, blocks |
|
|
72
|
+
|
|
73
|
+
### `bold`
|
|
74
|
+
|
|
75
|
+
<picture>
|
|
76
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/bold/cover-dark.png" />
|
|
77
|
+
<img alt="bold cover" src="./docs/screenshots/looks/bold/cover.png" width="640" />
|
|
78
|
+
</picture>
|
|
79
|
+
|
|
80
|
+
<picture>
|
|
81
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/bold/section-dark.png" />
|
|
82
|
+
<img alt="bold section" src="./docs/screenshots/looks/bold/section.png" width="640" />
|
|
83
|
+
</picture>
|
|
84
|
+
|
|
85
|
+
<picture>
|
|
86
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/bold/content-dark.png" />
|
|
87
|
+
<img alt="bold content slide" src="./docs/screenshots/looks/bold/content.png" width="640" />
|
|
88
|
+
</picture>
|
|
89
|
+
|
|
90
|
+
### `minimal`
|
|
91
|
+
|
|
92
|
+
<picture>
|
|
93
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/minimal/cover-dark.png" />
|
|
94
|
+
<img alt="minimal cover" src="./docs/screenshots/looks/minimal/cover.png" width="640" />
|
|
95
|
+
</picture>
|
|
96
|
+
|
|
97
|
+
<picture>
|
|
98
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/minimal/section-dark.png" />
|
|
99
|
+
<img alt="minimal section" src="./docs/screenshots/looks/minimal/section.png" width="640" />
|
|
100
|
+
</picture>
|
|
101
|
+
|
|
102
|
+
<picture>
|
|
103
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/minimal/content-dark.png" />
|
|
104
|
+
<img alt="minimal content slide" src="./docs/screenshots/looks/minimal/content.png" width="640" />
|
|
105
|
+
</picture>
|
|
106
|
+
|
|
107
|
+
### `swiss`
|
|
108
|
+
|
|
109
|
+
<picture>
|
|
110
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/swiss/cover-dark.png" />
|
|
111
|
+
<img alt="swiss cover" src="./docs/screenshots/looks/swiss/cover.png" width="640" />
|
|
112
|
+
</picture>
|
|
113
|
+
|
|
114
|
+
<picture>
|
|
115
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/swiss/section-dark.png" />
|
|
116
|
+
<img alt="swiss section" src="./docs/screenshots/looks/swiss/section.png" width="640" />
|
|
117
|
+
</picture>
|
|
118
|
+
|
|
119
|
+
<picture>
|
|
120
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/looks/swiss/content-dark.png" />
|
|
121
|
+
<img alt="swiss content slide" src="./docs/screenshots/looks/swiss/content.png" width="640" />
|
|
122
|
+
</picture>
|
|
123
|
+
|
|
124
|
+
### Fine-tuning
|
|
125
|
+
|
|
126
|
+
| Option | Values |
|
|
127
|
+
| ---------------- | ------------------------------------------- |
|
|
128
|
+
| `accent` | `blue` (monochrome), `industrial`, `orange` |
|
|
129
|
+
| `corners` | `rounded`, `square` |
|
|
130
|
+
| `density` | `compact`, `regular` (default), `relaxed` |
|
|
131
|
+
| `font` | `brand` (default), `hyperlegible` |
|
|
132
|
+
| `headingFont` | `montserrat`, `source-sans` |
|
|
133
|
+
| `pattern` | `dots`, `grid`, `lines`, `none` |
|
|
134
|
+
| `sectionSurface` | surface of `section` and `appendix` slides |
|
|
135
|
+
| `surface` | surface of content slides |
|
|
136
|
+
| `titleSurface` | surface of `cover` and `end` slides |
|
|
137
|
+
|
|
138
|
+
Every option works deck-wide (`themeConfig`) and per slide.
|
|
139
|
+
|
|
140
|
+
**Surfaces and color schemes:** `surface` picks a slide's palette: `auto` (white / navy), `tint`
|
|
141
|
+
(pale blue-grey / Illini Blue), `blue`, `orange` or `image` (implied by a `background` image). The
|
|
142
|
+
color scheme only picks the light or dark version of `auto` and `tint`; `blue`, `orange` and
|
|
143
|
+
`image` are always dark. The scheme follows Slidev's dark-mode toggle, unless a slide sets
|
|
144
|
+
`colorSchema: dark` (or `light`), e.g. to switch the second half of a talk to dark.
|
|
145
|
+
|
|
146
|
+
<picture>
|
|
147
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/options/color-schemes-dark.png" />
|
|
148
|
+
<img alt="Every surface in the light and dark color scheme" src="./docs/screenshots/options/color-schemes.png" width="640" />
|
|
149
|
+
</picture>
|
|
150
|
+
|
|
151
|
+
<picture>
|
|
152
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/options/color-scheme-override-dark.png" />
|
|
153
|
+
<img alt="A slide whose color scheme differs from the deck's" src="./docs/screenshots/options/color-scheme-override.png" width="640" />
|
|
154
|
+
</picture>
|
|
155
|
+
|
|
156
|
+
## Options
|
|
157
|
+
|
|
158
|
+
Set these in `themeConfig`; options marked * also work in a slide's frontmatter.
|
|
159
|
+
|
|
160
|
+
| Option | Values | Description |
|
|
161
|
+
| ------------------ | -------------------------------------------- | -------------------------------------------------- |
|
|
162
|
+
| `affiliations` | names or `{logo, logoDark, name, url}` | Institution logos on the cover |
|
|
163
|
+
| `bibliography` | path(s) | BibTeX or CSL-JSON file(s), relative to the slides |
|
|
164
|
+
| `chrome` * | `full`, `minimal`, `none` | Footer: text and page number, page number, nothing |
|
|
165
|
+
| `citationFooter` * | boolean (default `true`) | List each slide's references at its bottom |
|
|
166
|
+
| `citationLang` | locale (default `en-US`) | Citation locale |
|
|
167
|
+
| `citationStyle` | style name or `.csl` path (default `ieee`) | See [Citations](#citations) |
|
|
168
|
+
| `footer` * | string | Footer text |
|
|
169
|
+
| `footerMark` * | `block-i`, `none` (default), `wordmark` | Illinois mark in the footer |
|
|
170
|
+
| `footerSponsors` * | boolean | Sponsor logos in the footer |
|
|
171
|
+
| `markColor` | `blue`, `orange` (default) | Illinois mark color on dark backgrounds |
|
|
172
|
+
| `sponsors` | names or `{logo, logoDark, name, note, url}` | Sponsors on the `end` slide and in the footer |
|
|
173
|
+
| `unit` | name or `{logo, logoDark, name, url}` | Department or college shown on the cover |
|
|
174
|
+
|
|
175
|
+
<picture>
|
|
176
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/options/footer-dark.png" />
|
|
177
|
+
<img alt="Footer with the Illinois wordmark and sponsors" src="./docs/screenshots/options/footer.png" width="640" />
|
|
178
|
+
</picture>
|
|
179
|
+
|
|
180
|
+
A deck-wide `chrome` never shows more than a layout's default: cover and end slides have no footer,
|
|
181
|
+
section and canvas slides only the page number.
|
|
182
|
+
|
|
183
|
+
Slides also take `class` (extra classes; UnoCSS works) and `kicker` (a small label above the title).
|
|
184
|
+
Logos are your own images (e.g. `/logo.png` in `public/`); without `logoDark`, they get a white
|
|
185
|
+
plate on dark backgrounds. A unit `logo` should be the unit's official wordmark (it replaces the
|
|
186
|
+
Illinois wordmark on the cover); a unit given as text is shown apart from the Illinois mark, because
|
|
187
|
+
the [brand guidelines](https://brand.illinois.edu/visual-identity/wordmarks) forbid combining the
|
|
188
|
+
mark with a unit name. Links (`url` of authors, people and logos, and iframes) must be relative or use
|
|
189
|
+
`http`, `https` or `mailto`; other schemes such as `javascript:` are dropped.
|
|
190
|
+
|
|
191
|
+
Brand colors are UnoCSS utilities (`text-il-orange`, `bg-il-blue`, ...), as are the surface-aware
|
|
192
|
+
`text-accent`, `text-heading`, `text-muted`, `bg-panel` and `border-rule`; `il-lead` styles a
|
|
193
|
+
larger introductory paragraph and `il-small` small text. Mermaid diagrams follow the surface and
|
|
194
|
+
dark mode.
|
|
195
|
+
|
|
196
|
+
## Layouts
|
|
197
|
+
|
|
198
|
+
Asymmetric layouts come in mirrored pairs: `cover` puts the text on the left, `cover-right` on the
|
|
199
|
+
right (likewise `appendix`, `end`, `fact`, `quote`, `section`, `statement`, and the media layouts).
|
|
200
|
+
All layouts support light and dark mode; Slidev's built-in layouts (`full`, `iframe`, `intro`,
|
|
201
|
+
`none`, ...) also work. Ratios accept `1/3`, `2:1`, `40%` or `0.4`.
|
|
202
|
+
|
|
203
|
+
### `agenda`
|
|
204
|
+
|
|
205
|
+
Outline built from the deck's `section` slides; between sections, the upcoming one is highlighted.
|
|
206
|
+
|
|
207
|
+
Options: `current` (`false`, or the 1-based item), `items`
|
|
208
|
+
|
|
209
|
+
<picture>
|
|
210
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/agenda-dark.png" />
|
|
211
|
+
<img alt="agenda" src="./docs/screenshots/layouts/agenda.png" width="640" />
|
|
212
|
+
</picture>
|
|
213
|
+
|
|
214
|
+
### `appendix`, `appendix-right`
|
|
215
|
+
|
|
216
|
+
Backup slides divider; later slides are numbered A1, A2, ..., and `section` slides after it are
|
|
217
|
+
neither numbered nor listed in the agenda.
|
|
218
|
+
|
|
219
|
+
<picture>
|
|
220
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/appendix-dark.png" />
|
|
221
|
+
<img alt="appendix" src="./docs/screenshots/layouts/appendix.png" width="640" />
|
|
222
|
+
</picture>
|
|
223
|
+
|
|
224
|
+
### `canvas`
|
|
225
|
+
|
|
226
|
+
Blank slide for [drag-and-drop](https://sli.dev/features/draggable) placement: wrap elements in
|
|
227
|
+
`<v-drag>`, double-click them in the dev server, and positions are saved to the markdown.
|
|
228
|
+
|
|
229
|
+
Options: `guides` (dot grid)
|
|
230
|
+
|
|
231
|
+
<picture>
|
|
232
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/canvas-dark.png" />
|
|
233
|
+
<img alt="canvas" src="./docs/screenshots/layouts/canvas.png" width="640" />
|
|
234
|
+
</picture>
|
|
235
|
+
|
|
236
|
+
### `center`
|
|
237
|
+
|
|
238
|
+
Content centered on both axes.
|
|
239
|
+
|
|
240
|
+
<picture>
|
|
241
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/center-dark.png" />
|
|
242
|
+
<img alt="center" src="./docs/screenshots/layouts/center.png" width="640" />
|
|
243
|
+
</picture>
|
|
244
|
+
|
|
245
|
+
### `compare`
|
|
246
|
+
|
|
247
|
+
A vs. B: a header above two labelled panels (`::left::`, `::right::`).
|
|
248
|
+
|
|
249
|
+
Options: `emphasis`, `labels`, `ratio`
|
|
250
|
+
|
|
251
|
+
<picture>
|
|
252
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/compare-dark.png" />
|
|
253
|
+
<img alt="compare" src="./docs/screenshots/layouts/compare.png" width="640" />
|
|
254
|
+
</picture>
|
|
255
|
+
|
|
256
|
+
### `cover`, `cover-right`
|
|
257
|
+
|
|
258
|
+
Title slide with the Illinois wordmark (or your unit's official wordmark), authors, event and
|
|
259
|
+
affiliation logos.
|
|
260
|
+
|
|
261
|
+
Options: `authors`, `date`, `event`, `image`, `mark`, `pattern`
|
|
262
|
+
|
|
263
|
+
<picture>
|
|
264
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/cover-dark.png" />
|
|
265
|
+
<img alt="cover" src="./docs/screenshots/layouts/cover.png" width="640" />
|
|
266
|
+
</picture>
|
|
267
|
+
|
|
268
|
+
### `default`
|
|
269
|
+
|
|
270
|
+
Title and body.
|
|
271
|
+
|
|
272
|
+
<picture>
|
|
273
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/default-dark.png" />
|
|
274
|
+
<img alt="default" src="./docs/screenshots/layouts/default.png" width="640" />
|
|
275
|
+
</picture>
|
|
276
|
+
|
|
277
|
+
### `end`, `end-right`
|
|
278
|
+
|
|
279
|
+
Thanks / questions, with an optional QR code and sponsor logos.
|
|
280
|
+
|
|
281
|
+
Options: `mark`, `pattern`, `qr`, `qrLabel`, `sponsors`, `sponsorsLabel`
|
|
282
|
+
|
|
283
|
+
<picture>
|
|
284
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/end-dark.png" />
|
|
285
|
+
<img alt="end" src="./docs/screenshots/layouts/end.png" width="640" />
|
|
286
|
+
</picture>
|
|
287
|
+
|
|
288
|
+
### `fact`, `fact-right`
|
|
289
|
+
|
|
290
|
+
Big numbers: `# 87%` and a label, or a row of `<Stat>`s.
|
|
291
|
+
|
|
292
|
+
<picture>
|
|
293
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/fact-dark.png" />
|
|
294
|
+
<img alt="fact" src="./docs/screenshots/layouts/fact.png" width="640" />
|
|
295
|
+
</picture>
|
|
296
|
+
|
|
297
|
+
### `figure`
|
|
298
|
+
|
|
299
|
+
One large chart, diagram or screenshot with a caption and source.
|
|
300
|
+
|
|
301
|
+
Options: `alt`, `caption` (or `::caption::`), `image`, `source`
|
|
302
|
+
|
|
303
|
+
<picture>
|
|
304
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/figure-dark.png" />
|
|
305
|
+
<img alt="figure" src="./docs/screenshots/layouts/figure.png" width="640" />
|
|
306
|
+
</picture>
|
|
307
|
+
|
|
308
|
+
### `grid`
|
|
309
|
+
|
|
310
|
+
Tiles: every top-level block after the title becomes a cell.
|
|
311
|
+
|
|
312
|
+
Options: `columns`, `gap`; `.il-lead` paragraphs and `.il-span-all` elements span every column.
|
|
313
|
+
|
|
314
|
+
<picture>
|
|
315
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/grid-dark.png" />
|
|
316
|
+
<img alt="grid" src="./docs/screenshots/layouts/grid.png" width="640" />
|
|
317
|
+
</picture>
|
|
318
|
+
|
|
319
|
+
### `image`
|
|
320
|
+
|
|
321
|
+
Full-bleed photo with overlaid text.
|
|
322
|
+
|
|
323
|
+
Options: `alt`, `caption`, `fit`, `image`, `position`, `scrim`
|
|
324
|
+
|
|
325
|
+
<picture>
|
|
326
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/image-dark.png" />
|
|
327
|
+
<img alt="image" src="./docs/screenshots/layouts/image.png" width="640" />
|
|
328
|
+
</picture>
|
|
329
|
+
|
|
330
|
+
### `media-left`, `media-right`, `image-left`, `image-right`, `iframe-left`, `iframe-right`
|
|
331
|
+
|
|
332
|
+
Content beside media: `image`, `video`, `iframe` or anything in the `::media::` slot (the image and
|
|
333
|
+
iframe layouts are shortcuts).
|
|
334
|
+
|
|
335
|
+
Options: `alt`, `caption`, `fit`, `frame` (`bleed`, `inset`), `iframe` (or `url`), `image`,
|
|
336
|
+
`mediaBackground`, `ratio`, `video`
|
|
337
|
+
|
|
338
|
+
Embedded pages from other sites are sandboxed: they can run scripts, submit forms, open links in
|
|
339
|
+
new tabs and play media, but they cannot navigate the deck away, show blocking dialogs or start
|
|
340
|
+
downloads, and they only learn the deck's origin (not its full address). Pages from the deck's own
|
|
341
|
+
site are not isolated from the deck. A page that needs more goes into the `::media::` slot as an
|
|
342
|
+
`<iframe>` of your own.
|
|
343
|
+
|
|
344
|
+
<picture>
|
|
345
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/media-dark.png" />
|
|
346
|
+
<img alt="media-left" src="./docs/screenshots/layouts/media.png" width="640" />
|
|
347
|
+
</picture>
|
|
348
|
+
|
|
349
|
+
### `people`
|
|
350
|
+
|
|
351
|
+
Speakers, team or collaborators.
|
|
352
|
+
|
|
353
|
+
Options: `columns`, `people`
|
|
354
|
+
|
|
355
|
+
<picture>
|
|
356
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/people-dark.png" />
|
|
357
|
+
<img alt="people" src="./docs/screenshots/layouts/people.png" width="640" />
|
|
358
|
+
</picture>
|
|
359
|
+
|
|
360
|
+
### `quote`, `quote-right`
|
|
361
|
+
|
|
362
|
+
Pull quote.
|
|
363
|
+
|
|
364
|
+
Options: `author`, `role` (or `::attribution::`)
|
|
365
|
+
|
|
366
|
+
<picture>
|
|
367
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/quote-dark.png" />
|
|
368
|
+
<img alt="quote" src="./docs/screenshots/layouts/quote.png" width="640" />
|
|
369
|
+
</picture>
|
|
370
|
+
|
|
371
|
+
### `references`
|
|
372
|
+
|
|
373
|
+
Bibliography (see [Citations](#citations)).
|
|
374
|
+
|
|
375
|
+
Options: `all`, `columns`, `fit`, `from`, `keys`, `to`
|
|
376
|
+
|
|
377
|
+
<picture>
|
|
378
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/references-dark.png" />
|
|
379
|
+
<img alt="references" src="./docs/screenshots/layouts/references.png" width="640" />
|
|
380
|
+
</picture>
|
|
381
|
+
|
|
382
|
+
### `section`, `section-right`
|
|
383
|
+
|
|
384
|
+
Section divider, numbered automatically in agenda order (`hideInToc: true` sections are skipped).
|
|
385
|
+
|
|
386
|
+
Options: `number`, `pattern`
|
|
387
|
+
|
|
388
|
+
<picture>
|
|
389
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/section-dark.png" />
|
|
390
|
+
<img alt="section" src="./docs/screenshots/layouts/section.png" width="640" />
|
|
391
|
+
</picture>
|
|
392
|
+
|
|
393
|
+
### `statement`, `statement-right`
|
|
394
|
+
|
|
395
|
+
One big idea; `*emphasis*` in the title is highlighted.
|
|
396
|
+
|
|
397
|
+
Options: `align: center`
|
|
398
|
+
|
|
399
|
+
<picture>
|
|
400
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/statement-dark.png" />
|
|
401
|
+
<img alt="statement" src="./docs/screenshots/layouts/statement.png" width="640" />
|
|
402
|
+
</picture>
|
|
403
|
+
|
|
404
|
+
### `two-cols`, `two-cols-header`
|
|
405
|
+
|
|
406
|
+
Two columns (default slot or `::left::`, and `::right::`), optionally below a header.
|
|
407
|
+
|
|
408
|
+
Options: `align`, `ratio`
|
|
409
|
+
|
|
410
|
+
<picture>
|
|
411
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/two-cols-dark.png" />
|
|
412
|
+
<img alt="two-cols, two-cols-header" src="./docs/screenshots/layouts/two-cols.png" width="640" />
|
|
413
|
+
</picture>
|
|
414
|
+
|
|
415
|
+
## Components
|
|
416
|
+
|
|
417
|
+
### `<Callout>`, `<Steps>`
|
|
418
|
+
|
|
419
|
+
Callout types: `important`, `note` (default), `question`, `tip` or `warning`. `<Steps>` shows a
|
|
420
|
+
numbered process.
|
|
421
|
+
|
|
422
|
+
`<Callout type="tip" title="Heads up">...</Callout>`,
|
|
423
|
+
`<Steps :items="['Draft', 'Review']" :current="2" />`
|
|
424
|
+
|
|
425
|
+
<picture>
|
|
426
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/components/callout-dark.png" />
|
|
427
|
+
<img alt="<Callout>" src="./docs/screenshots/components/callout.png" width="640" />
|
|
428
|
+
</picture>
|
|
429
|
+
|
|
430
|
+
### `<Card>`
|
|
431
|
+
|
|
432
|
+
Card: `accent`, `outline`, `panel` (default) or `plain`.
|
|
433
|
+
|
|
434
|
+
`<Card label="Label" title="Title" tone="accent">...</Card>`
|
|
435
|
+
|
|
436
|
+
<picture>
|
|
437
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/layouts/grid-dark.png" />
|
|
438
|
+
<img alt="<Card>" src="./docs/screenshots/layouts/grid.png" width="640" />
|
|
439
|
+
</picture>
|
|
440
|
+
|
|
441
|
+
### `<Frame>`, `<IllinoisLogo>`, `<QrCode>`
|
|
442
|
+
|
|
443
|
+
Image with rounded corners (or one large corner); official Illinois mark (`block-i`, `formal`,
|
|
444
|
+
`vertical`, `wordmark`); QR code.
|
|
445
|
+
|
|
446
|
+
`<Frame src="/photo.jpg" aspect="4/3" />`, `<IllinoisLogo kind="wordmark" />`,
|
|
447
|
+
`<QrCode value="https://illinois.edu" />`
|
|
448
|
+
|
|
449
|
+
<picture>
|
|
450
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/components/frame-logo-qr-dark.png" />
|
|
451
|
+
<img alt="<Frame>, <IllinoisLogo>, <QrCode>" src="./docs/screenshots/components/frame-logo-qr.png" width="640" />
|
|
452
|
+
</picture>
|
|
453
|
+
|
|
454
|
+
### `<MathMorph>`
|
|
455
|
+
|
|
456
|
+
Animated LaTeX, like Magic Move for code: each click morphs the equation into the next step.
|
|
457
|
+
|
|
458
|
+
`<MathMorph :steps="['(a + b)^2', 'a^2 + 2ab + b^2']" />` (`at`, `display`, `duration`)
|
|
459
|
+
|
|
460
|
+
<picture>
|
|
461
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/components/math-morph-dark.png" />
|
|
462
|
+
<img alt="MathMorph" src="./docs/screenshots/components/math-morph.png" width="640" />
|
|
463
|
+
</picture>
|
|
464
|
+
|
|
465
|
+
### `<Stat>`
|
|
466
|
+
|
|
467
|
+
Key number with a label and note.
|
|
468
|
+
|
|
469
|
+
`<Stat value="87%" label="passed" note="Fall 2026" />`
|
|
470
|
+
|
|
471
|
+
<picture>
|
|
472
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/components/stat-dark.png" />
|
|
473
|
+
<img alt="<Stat>" src="./docs/screenshots/components/stat.png" width="640" />
|
|
474
|
+
</picture>
|
|
475
|
+
|
|
476
|
+
## Citations
|
|
477
|
+
|
|
478
|
+
Set `themeConfig.bibliography` and cite with [Pandoc syntax](https://pandoc.org/MANUAL.html#citation-syntax):
|
|
479
|
+
|
|
480
|
+
| Markdown | IEEE | APA |
|
|
481
|
+
| ---------------------------- | -------------- | ------------------------------------- |
|
|
482
|
+
| `[-@smith2024]` | `[1]` | `(2024)` |
|
|
483
|
+
| `[@smith2024, p. 12]` | `[1, p. 12]` | `(Smith et al., 2024, p. 12)` |
|
|
484
|
+
| `[@smith2024]` | `[1]` | `(Smith et al., 2024)` |
|
|
485
|
+
| `[see @smith2024; @doe2023]` | `[see 1], [2]` | `(see Smith et al., 2024; Doe, 2023)` |
|
|
486
|
+
|
|
487
|
+
- **Styles:** any ID from the [CSL style repository](https://github.com/citation-style-language/styles)
|
|
488
|
+
(`ieee`, `apa`, `nature`, ...), the shortcuts `acm`, `chicago`, `harvard` and `mla`, or a `.csl`
|
|
489
|
+
path. Numeric and author-date styles are supported (note styles are not). Styles and locales
|
|
490
|
+
(`citationLang`, e.g. `de-DE`) are downloaded from a pinned commit of the CSL repositories on
|
|
491
|
+
first use (so the first build needs network access) and cached in
|
|
492
|
+
`node_modules/.cache/slidev-theme-illinois`.
|
|
493
|
+
- **Numbering** follows the order of first citation across the deck.
|
|
494
|
+
- **References** appear at the bottom of each citing slide (`citationFooter`) and on `references`
|
|
495
|
+
slides, which shrink long lists to fit; split longer lists across slides with `from` / `to` (e.g.
|
|
496
|
+
`to: 12` on one slide, `from: 13` on the next). Entries that still do not fit are reported in the
|
|
497
|
+
browser console.
|
|
498
|
+
- `<Cite keys="smith2024" locator="p. 3" />` (counted like `[@smith2024]`) and
|
|
499
|
+
`<Bibliography :columns="2" />` (with `all`, `columns`, `fit`, `from`, `keys`, `to`) work anywhere,
|
|
500
|
+
e.g. inside other components.
|
|
501
|
+
- **Published decks** only contain the references they show: cited entries, and uncited ones that a
|
|
502
|
+
`<Bibliography>` in a slide or a `references` slide lists with `all` or `keys`. The rest of the
|
|
503
|
+
bibliography file is left out of the build, so a deck can point at a whole reference library. To
|
|
504
|
+
list uncited entries from inside another component, also name them in a slide (e.g. on a
|
|
505
|
+
`references` slide).
|
|
506
|
+
- **Problems** are shown on the slides without local paths or file contents; the details are
|
|
507
|
+
printed in the terminal.
|
|
508
|
+
- Citations in code, math, HTML tags and comments are ignored, as are escaped brackets (`\[@key]`);
|
|
509
|
+
missing keys render as `[?key]` and are reported in the terminal.
|
|
510
|
+
- Author-date labels are not disambiguated (two "Smith, 2020" works both show `Smith, 2020` in the
|
|
511
|
+
text, while the reference list shows 2020a / 2020b).
|
|
512
|
+
|
|
513
|
+
<picture>
|
|
514
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/features/citations-dark.png" />
|
|
515
|
+
<img alt="Citations" src="./docs/screenshots/features/citations.png" width="640" />
|
|
516
|
+
</picture>
|
|
517
|
+
|
|
518
|
+
## Slidev features
|
|
519
|
+
|
|
520
|
+
Everything Slidev offers works with the theme; the example deck demonstrates click animations
|
|
521
|
+
(`v-click`, `v-clicks`, `v-mark`), motion (`v-motion`), slide transitions, step-by-step code
|
|
522
|
+
highlighting, Magic Move, live code (`{monaco-run}`), morphing LaTeX (`<MathMorph>`), Mermaid,
|
|
523
|
+
Iconify icons, presenter notes and drawing. See the [Slidev documentation](https://sli.dev/guide/) for details.
|
|
524
|
+
|
|
525
|
+
<picture>
|
|
526
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/features/clicks-dark.png" />
|
|
527
|
+
<img alt="Click animations" src="./docs/screenshots/features/clicks.png" width="640" />
|
|
528
|
+
</picture>
|
|
529
|
+
|
|
530
|
+
<picture>
|
|
531
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/features/code-dark.png" />
|
|
532
|
+
<img alt="Code walkthrough" src="./docs/screenshots/features/code.png" width="640" />
|
|
533
|
+
</picture>
|
|
534
|
+
|
|
535
|
+
<picture>
|
|
536
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/screenshots/features/math-dark.png" />
|
|
537
|
+
<img alt="Math and icons" src="./docs/screenshots/features/math.png" width="640" />
|
|
538
|
+
</picture>
|
|
539
|
+
|
|
540
|
+
## Contributing
|
|
541
|
+
|
|
542
|
+
Open the repository in the dev container (VS Code: `Dev Containers: Open Workspace in Container`,
|
|
543
|
+
then pick `slidev-theme-illinois.code-workspace`), then:
|
|
544
|
+
|
|
545
|
+
```shell
|
|
546
|
+
npm install # Install dependencies
|
|
547
|
+
npm run dev # Preview example.md
|
|
548
|
+
npm run lint # Lint
|
|
549
|
+
npm run fmt:check # Check formatting
|
|
550
|
+
npm run typecheck # Type-check
|
|
551
|
+
npm run build # Build example.md
|
|
552
|
+
npm run export # Export example.pdf
|
|
553
|
+
npm run screenshot # Regenerate docs/screenshots (slides with `screenshot: <path>`)
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
Dependency install scripts are disabled and new releases are held back for 7 days (`.npmrc`).
|
|
557
|
+
Outside the dev container, install the browser used by `export` and `screenshot` yourself with
|
|
558
|
+
`npx playwright install chromium`. Pull requests are linted, type-checked and built by
|
|
559
|
+
`.github/workflows/check.yml`.
|
|
560
|
+
|
|
561
|
+
Project structure (cross-directory imports use the `#assets/`, `#citations/`, `#components/` and
|
|
562
|
+
`#internal/` aliases declared in `package.json`):
|
|
563
|
+
|
|
564
|
+
- `assets/`: theme assets
|
|
565
|
+
- `logos/`: official Illinois marks (SVG)
|
|
566
|
+
- `citations/`: Node-side citation engine
|
|
567
|
+
- `engine.ts`: formats bibliographies and numbers citations
|
|
568
|
+
- `errors.ts`: errors that are safe to show on slides
|
|
569
|
+
- `plugin.ts`: Vite plugin serving `virtual:illinois-citations`
|
|
570
|
+
- `styles.ts`: downloads and caches CSL styles and locales
|
|
571
|
+
- `syntax.ts`: parses Pandoc-style citations
|
|
572
|
+
- `components/`: components usable in slides
|
|
573
|
+
- `docs/`: documentation assets
|
|
574
|
+
- `screenshots/`: README screenshots (generated; `components/`, `features/`, `layouts/`,
|
|
575
|
+
`looks/<look>/`, `options/`), `<name>.png` in light and `<name>-dark.png` in dark mode
|
|
576
|
+
- `example.bib`, `example.md`: example deck (also the source of the screenshots)
|
|
577
|
+
- `internal/`: code shared by layouts and components
|
|
578
|
+
- `citations.ts`: client-side citation state and formatting
|
|
579
|
+
- `theme.ts`: options, looks, per-slide state and helpers
|
|
580
|
+
- `*.vue`: layout building blocks (layout root, kicker, pattern, media split, brand logos)
|
|
581
|
+
- `layouts/`: slide layouts
|
|
582
|
+
- `scripts/`: development scripts
|
|
583
|
+
- `screenshots.ts`: exports the README screenshots
|
|
584
|
+
- `typecheck.ts`: type-checks the theme, ignoring errors inside dependencies
|
|
585
|
+
- `setup/`: Slidev setup hooks (markdown transformer, Mermaid, Shiki highlighting themes, UnoCSS, Vite
|
|
586
|
+
plugins)
|
|
587
|
+
- `slide-top.vue`: per-slide footer and references
|
|
588
|
+
- `styles/`: base typography, components, layouts, looks and design tokens
|
|
589
|
+
|
|
590
|
+
## License
|
|
591
|
+
|
|
592
|
+
MIT, except for the University of Illinois marks and other third-party material; see
|
|
593
|
+
[`LICENSE`](./LICENSE).
|