@treasure-ai/treasure-deck 0.0.0-stage → 2026.10.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 (110) hide show
  1. package/LICENSE.md +5 -0
  2. package/README.md +109 -2
  3. package/dist/analytics.d.ts +34 -0
  4. package/dist/analytics.js +93 -0
  5. package/dist/analytics.js.map +1 -0
  6. package/dist/attrs.d.ts +10 -0
  7. package/dist/attrs.js +22 -0
  8. package/dist/attrs.js.map +1 -0
  9. package/dist/build.d.ts +67 -0
  10. package/dist/build.js +247 -0
  11. package/dist/build.js.map +1 -0
  12. package/dist/check.d.ts +30 -0
  13. package/dist/check.js +142 -0
  14. package/dist/check.js.map +1 -0
  15. package/dist/chrome.d.ts +20 -0
  16. package/dist/chrome.js +162 -0
  17. package/dist/chrome.js.map +1 -0
  18. package/dist/cli.d.ts +2 -0
  19. package/dist/cli.js +246 -0
  20. package/dist/cli.js.map +1 -0
  21. package/dist/dev.d.ts +28 -0
  22. package/dist/dev.js +557 -0
  23. package/dist/dev.js.map +1 -0
  24. package/dist/diagrams.d.ts +18 -0
  25. package/dist/diagrams.js +57 -0
  26. package/dist/diagrams.js.map +1 -0
  27. package/dist/highlight.d.ts +7 -0
  28. package/dist/highlight.js +26 -0
  29. package/dist/highlight.js.map +1 -0
  30. package/dist/hot.d.ts +31 -0
  31. package/dist/hot.js +34 -0
  32. package/dist/hot.js.map +1 -0
  33. package/dist/media.d.ts +24 -0
  34. package/dist/media.js +82 -0
  35. package/dist/media.js.map +1 -0
  36. package/dist/parse.d.ts +109 -0
  37. package/dist/parse.js +313 -0
  38. package/dist/parse.js.map +1 -0
  39. package/dist/patch.d.ts +22 -0
  40. package/dist/patch.js +53 -0
  41. package/dist/patch.js.map +1 -0
  42. package/dist/pdf.d.ts +10 -0
  43. package/dist/pdf.js +53 -0
  44. package/dist/pdf.js.map +1 -0
  45. package/dist/render.d.ts +101 -0
  46. package/dist/render.js +513 -0
  47. package/dist/render.js.map +1 -0
  48. package/dist/scaffold.d.ts +27 -0
  49. package/dist/scaffold.js +83 -0
  50. package/dist/scaffold.js.map +1 -0
  51. package/dist/themecheck.d.ts +34 -0
  52. package/dist/themecheck.js +228 -0
  53. package/dist/themecheck.js.map +1 -0
  54. package/docs/adrs/2026-10-03-chrome-over-devtools.md +29 -0
  55. package/docs/adrs/2026-10-03-fixed-canvas.md +25 -0
  56. package/docs/adrs/2026-10-03-four-layouts-plus-attributes.md +25 -0
  57. package/docs/adrs/2026-10-03-hybrid-pdf-over-devtools.md +25 -0
  58. package/docs/adrs/2026-10-03-keyword-lines-and-one-attribute-syntax.md +36 -0
  59. package/docs/adrs/2026-10-03-one-behavior-instead-of-settings.md +30 -0
  60. package/docs/adrs/2026-10-03-overflow-is-reported-not-hidden.md +27 -0
  61. package/docs/adrs/2026-10-03-single-file-html.md +26 -0
  62. package/docs/adrs/2026-10-03-strict-build-forgiving-preview.md +31 -0
  63. package/docs/adrs/2026-10-04-edit-in-place-by-alignment.md +28 -0
  64. package/docs/adrs/2026-10-04-editor-in-the-deck-page.md +31 -0
  65. package/docs/adrs/2026-10-04-edits-are-line-range-patches.md +35 -0
  66. package/docs/adrs/2026-10-04-per-slide-hot-swap.md +33 -0
  67. package/docs/adrs/2026-10-04-theme-colors-derive-in-css.md +32 -0
  68. package/docs/adrs/2026-10-05-host-owns-undo.md +26 -0
  69. package/docs/adrs/2026-10-07-anonymous-access-metrics.md +38 -0
  70. package/docs/adrs/2026-10-14-dev-links-media-by-url.md +25 -0
  71. package/docs/adrs/2026-10-14-media-dir-for-the-publish-limit.md +28 -0
  72. package/docs/adrs/2026-10-14-videos-are-inlined-images.md +28 -0
  73. package/docs/adrs/2026-10-15-public-npm-under-labs-terms.md +37 -0
  74. package/docs/adrs/README.md +34 -0
  75. package/docs/commands.md +104 -0
  76. package/docs/editor.md +114 -0
  77. package/docs/syntax.md +157 -0
  78. package/docs/themes.md +134 -0
  79. package/package.json +68 -4
  80. package/runtime/base.css +354 -0
  81. package/runtime/edit-core.cjs +877 -0
  82. package/runtime/embed.js +5259 -0
  83. package/runtime/hot.js +136 -0
  84. package/runtime/runtime.js +729 -0
  85. package/skills/treasure-deck/SKILL.md +136 -0
  86. package/templates/deck.md +78 -0
  87. package/templates/specimen/specimen.md +104 -0
  88. package/templates/theme/assets/mark.svg +1 -0
  89. package/templates/theme/theme.css +97 -0
  90. package/templates/theme/theme.yaml +7 -0
  91. package/themes/default/theme.css +183 -0
  92. package/themes/default/theme.yaml +6 -0
  93. package/themes/editorial/theme.css +168 -0
  94. package/themes/editorial/theme.yaml +7 -0
  95. package/themes/gold/assets/gem.svg +130 -0
  96. package/themes/gold/theme.css +303 -0
  97. package/themes/gold/theme.yaml +7 -0
  98. package/themes/pastel/theme.css +187 -0
  99. package/themes/pastel/theme.yaml +6 -0
  100. package/themes/treasure-ai/assets/gem-line.svg +7 -0
  101. package/themes/treasure-ai/assets/gem.png +0 -0
  102. package/themes/treasure-ai/assets/gem.svg +25 -0
  103. package/themes/treasure-ai/assets/glass.svg +12 -0
  104. package/themes/treasure-ai/assets/logo-white.png +0 -0
  105. package/themes/treasure-ai/assets/logo.png +0 -0
  106. package/themes/treasure-ai/theme.css +239 -0
  107. package/themes/treasure-ai/theme.yaml +6 -0
  108. package/themes/wvlet/assets/wvlet-icon.svg +27 -0
  109. package/themes/wvlet/theme.css +238 -0
  110. package/themes/wvlet/theme.yaml +6 -0
@@ -0,0 +1,136 @@
1
+ ---
2
+ name: treasure-deck
3
+ description: >-
4
+ Write and edit slide decks in treasure-deck Markdown (a .md file with `deck: true` frontmatter, built to one
5
+ HTML page by `deck build`). Use this skill whenever the user wants a presentation, talk, slides, deck, pitch,
6
+ or lightning talk drafted, turned from an outline or notes or a document into slides, restyled, shortened, or
7
+ fixed — and whenever you edit a Markdown file whose frontmatter has `deck: true`, even if the user just says
8
+ "update my talk". It covers the syntax, the house style for dense, readable slides, and the `deck check` loop
9
+ that catches overflowing slides before anyone sees them.
10
+ ---
11
+
12
+ # Writing treasure-deck slides
13
+
14
+ A deck is one Markdown file (plus an `images/` folder next to it). `deck build talk.md` turns it into a single self-contained HTML page; `deck pdf` prints it. The syntax is CommonMark + GFM with a handful of additions, and the build is strict: a typo in a layout, attribute, or class fails with a line number instead of reaching the audience.
15
+
16
+ **Running the CLI.** Use `deck` if it is on the PATH (installed with `npm install -g @treasure-ai/treasure-deck`). Otherwise `npx @treasure-ai/treasure-deck …` works, and inside a treasure-deck checkout use `pnpm deck …`. The full reference (`syntax.md`, `commands.md`, `editor.md`, `themes.md`) is in the package's `docs/` folder, at `$(npm root -g)/@treasure-ai/treasure-deck/docs/` for a global install. With `pnpm --dir <checkout> deck …`, pass absolute paths: `--dir` changes the working directory, so relative paths would resolve inside the checkout.
17
+
18
+ ## Workflow
19
+
20
+ 1. **Start the file.** For a new deck, run `deck new talks/<slug>` (or `deck new <file>.md --title "…" --theme default|editorial|pastel|gold|treasure-ai|wvlet --author "…"`). It writes a starter deck that already builds, with the frontmatter filled in. The author defaults to git's `user.name`, so pass `--author` when the talk is someone else's. Replace the starter's slides entirely, keeping only the frontmatter, and add `--- section` lines where your plan has sections. For an existing deck, read the whole file first: its sections, tone, and density are the style to match.
21
+ 2. **Plan the story before the slides.** From the user's outline, notes, or document, write down the sections and one sentence per slide saying what that slide proves. A slide without such a sentence usually belongs merged into another. For length, plan about one content slide per 1.5–2 minutes of talk (a 15-minute talk is 8–10 slides plus the title and closing), and 3–5 sections for 20 minutes or more. Use only facts the user gave you. Where a slide needs a number or name you don't have, write the slide without it and leave a `TODO:` in its `=== notes` instead of inventing one, because a plausible made-up figure is easy to miss and embarrassing on stage.
22
+ 3. **Write the slides** with the syntax below and the style guide after it.
23
+ 4. **Verify with `deck check <file>.md --snapshots <dir>`.** It renders every slide in headless Chrome at the real 1280×720 size and reports, with source line numbers, content that runs past the slide's edges, clipped or shrunken code, diagram labels too small to read, and title-only leftovers. Build errors (unknown class, missing image, a broken Mermaid diagram) surface here too. Fix every finding (shorten, split the slide, switch to columns) and run it again until it is clean.
24
+ Then **look at the snapshots** (`<dir>/slide-NN.png`), at least every slide with a diagram, columns, or cards. A clean check means nothing overflows; it doesn't mean the slide looks right. The snapshots show what the check can't: a slide that is mostly empty, cards of very different heights, a diagram that reads poorly. Don't report a deck as done before the check passes and you have looked.
25
+ 5. **Hand over.** Tell the user how to preview: `deck dev <file>.md` serves it with live reload at http://localhost:4300 (`--port`, `--theme` to compare themes), and `deck editor <file>.md` opens it in the browser to edit on the slides. Mention anything you were unsure about, such as numbers you inferred or images that still need to be supplied.
26
+
27
+ ## Syntax
28
+
29
+ ```markdown
30
+ ---
31
+ deck: true
32
+ title: "Wvlet: A Flow-Style Query Language"
33
+ author: Taro L. Saito
34
+ date: 2026-10-15
35
+ theme: default # default | editorial | pastel (unbranded) | gold (Treasure Work) | treasure-ai | wvlet | ./my-theme (a theme folder)
36
+ footer: "Treasure AI · DB Study Group"
37
+ # optional: mode: dark · accent: "#25a7c1" · section_slides: true · toc: sidebar · parts: [part2.md]
38
+ ---
39
+ --- title
40
+
41
+ # Wvlet: *Flow-Style* Queries
42
+
43
+ Subtitle line{.subtitle}
44
+
45
+ **Taro L. Saito** · Treasure AI
46
+
47
+ October 15, 2026{.meta}
48
+
49
+ ---
50
+
51
+ # A content slide (the default layout)
52
+
53
+ - Bullets, tables, code, images flow in the body
54
+
55
+ === notes
56
+ Speaker notes: everything after === notes, to the end of the slide.
57
+
58
+ --- section
59
+
60
+ # Part name
61
+
62
+ --- columns 3:2
63
+
64
+ # A columns slide
65
+
66
+ Left column (3 parts wide)
67
+
68
+ === col
69
+
70
+ Right column (2 parts wide)
71
+ ```
72
+
73
+ | Syntax | Meaning |
74
+ |---|---|
75
+ | `---` | Next slide |
76
+ | `--- <layout> {attrs}` | Next slide with a layout: `content` (default), `title`, `section`, `columns [ratio]` |
77
+ | `=== col` / `=== col {.class}` | Next column; a slide containing it is a columns slide |
78
+ | `=== row` / `=== row 2:1` | Next row of columns, at its own widths, under the ones before (e.g. three cards over a full-width summary) |
79
+ | `=== notes` | Speaker notes until the end of the slide |
80
+ | `{…}` after a block, image, or `[span]` | Attributes: `.class`, `key=value`, flags |
81
+
82
+ - A leading `#` heading on a content or columns slide becomes the slide title (spanning all columns).
83
+ - Extra blank lines between blocks add space on the slide: one blank line separates blocks as usual, and each one more adds a small gap. Use them for deliberate breathing room, not by accident.
84
+ - `--- section` + `# Name` starts a numbered section. Its divider slide is **hidden** by default; the section's number and name appear above the titles of the slides that follow. `--- section {show}` shows one divider; `--- section {nonum}` drops the big number from that divider slide (the section stays numbered elsewhere).
85
+ - `--- {hide}` leaves a slide out of the build (a draft); `--- section {hide}` leaves out a whole section.
86
+ - A column whose first line is `### Heading` renders as a card. A row of cards is a columns slide whose columns each open with `###`:
87
+
88
+ ```markdown
89
+ --- columns
90
+ # Three lessons
91
+
92
+ ### Measure first
93
+ 60% of the time was dependency install.
94
+
95
+ === col
96
+
97
+ ### Caches need discipline
98
+ Key on the lockfile hash.
99
+ ```
100
+
101
+ The title line comes first and the first card follows directly, with no `=== col` before it (one there is harmless; it is dropped).
102
+ - Slide attributes: `{bg=photo.jpg dim=0.4 blur=4}` full-bleed background, `{mode=dark}` one dark slide, `{fit}` shrink an overflowing body to fit (see below), `{.class}`.
103
+
104
+ **Classes** (every theme styles all of them; others are a build error unless defined in a `theme.css` next to the deck): `.lead` (the key sentence, 1.2× body size; it stands out by position and brevity more than size), `.muted` (secondary), `.small` (sources, footnotes), `.subtitle` and `.meta` (title slides), `.callout`, `.note`, `.warn` (boxed asides), `.center` (horizontal centering of a paragraph; there is no vertical centering), `.hl` (inline highlight: `[text]{.hl}`), `.badge` (`[new]{.badge}`), `.del`.
105
+
106
+ **Images:** `![alt](images/x.png){h=300 shadow}`. Size with `w=` / `h=` (canvas px or `%`); decorate with `shadow round circle border`; place with `left center right`, or `fit` / `cover` to fill the column. `{side=right w=40%}` makes a full-height side panel; `{bg dim=0.4}` a full-bleed background; `{at=top-right w=120}` pins it. `![alt](x.png "Caption")` adds a caption. Several images in one paragraph form a row. Paths are relative to the deck; missing images fail the build. A video (`.mp4`, `.webm`, `.mov`) uses the same syntax and attributes, plus `autoplay` (muted, when the slide shows), `loop`, and `nocontrols`; it is inlined, so keep clips short: a page over about 9 MB can't be published as a web page, and `deck build` says so. `deck build --media-dir <dir>` keeps videos as files next to the page instead.
107
+
108
+ **Code:** fenced blocks are highlighted at build time (any highlight.js language, plus `wvlet`). ` ```sql {2-3} ` highlights lines 2–3 and dims the rest. A slide holding only a code block gets a larger font.
109
+
110
+ **Diagrams:** ` ```mermaid ` draws a diagram colored by the theme; give a node a role with `A[Label]:::accent` (also `:::dark`, `:::muted`, `:::light`). A diagram is scaled to fit its column's width, so its text shrinks with it: a five-node `flowchart LR` in a `1:1` column ends up with 8px labels. Keep diagrams small: at most about 5–6 nodes, labels of one to three words, and few edge labels. Match the direction to the space: `flowchart TB` for a column, `LR` only for a short chain (3–4 nodes) or when the diagram has the full slide width. A diagram alone on a content slide gets the full width, but a tall one can then run off the bottom. Size one on its fence line: ` ```mermaid {w=60%} ` (canvas px or % of the column, enlarging too) or `{h=300}` for a tall one; labels scale with it. `deck check` warns when labels render below 13px.
111
+
112
+ ## House style
113
+
114
+ The canvas is 1280×720 with 21–22px body text, so slides hold real content — but only about **10 lines of body text** below a title, or 7 bullets, or a 6-row table, or a 12-line code block. More than that overflows, which `deck check` will report.
115
+
116
+ - **Titles say the point.** "Queries read top to bottom" beats "Query syntax". The title is the sentence a skimming reader should keep.
117
+ - **One idea per slide.** If a slide needs two titles, it's two slides.
118
+ - **Bullets are short statements**, 5–6 at most, one line each where possible; start with the bolded key phrase (`- **Strict** — typos fail the build`). Nest at most one level.
119
+ - **Use columns for comparison and for text + evidence** (claim on the left, code/table/image on the right) — `--- columns 3:2` or `1:1`. Cards (`### Heading` columns) suit 2–4 parallel options.
120
+ - **Prefer a table** over bullets when items share attributes; prefer a Mermaid diagram over a bullet list describing a flow.
121
+ - **Fill the slide, or make it a statement.** Two bullets under a title leave most of the canvas empty. Merge the slide with a neighbor, add the evidence (a table, diagram, code, or image beside the text in columns), or make it a deliberate one-line statement with `.lead`.
122
+ - **One `.lead` sentence** per slide at most, for the takeaway; `.muted` for context the speaker will say aloud anyway.
123
+ - **Put the talk track in `=== notes`**, not on the slide: the slide carries the evidence, the notes carry the narration.
124
+ - **Open with a title slide and end with one** (`# *Thank* you`, or the call to action). `*emphasis*` in a title becomes the theme's accent style.
125
+ - **Don't add agenda or section-divider slides** unless asked: sections already label every slide, and `t` shows a table of contents.
126
+ - **Match the language of the source material.** Japanese text is typeset automatically (line breaking and fonts), with no setting.
127
+
128
+ ## Fixing `deck check` findings
129
+
130
+ - **Overflows the bottom:** cut words first, then split the slide, then move detail to notes. `--- {fit}` (zoom the body down to fit, not below 14px) is for slides that are dense by nature, such as a reference table, an appendix, or a full agenda. It isn't a fix for a talk slide that says too much, and `deck check` warns when it pushes text below 16px. Shrinking text with `.small` is for footnotes, not body content.
131
+ - **Code shrunk:** shorten long lines, drop lines that aren't the point, or give the code its own slide (a slide holding only a code block gets a larger font).
132
+ - **Wide table:** abbreviate headers, drop a column, or move the table to its own slide.
133
+
134
+ ## When the user wants a different look
135
+
136
+ Switching `theme:` restyles everything without edits. For small changes (a brand color, a custom class), add a `theme.css` next to the deck; it loads after the theme. For a whole new look, `deck theme init my-theme` (or `--from gold`) scaffolds a theme folder, used with `theme: ./my-theme`; it sets a few seed colors (`--deck-bg`, `--deck-fg`, `--deck-accent`) and the rest is derived. Run `deck theme check ./my-theme` after editing it.
@@ -0,0 +1,78 @@
1
+ ---
2
+ deck: true
3
+ title: __TITLE_YAML__
4
+ author: __AUTHOR_YAML__
5
+ date: __DATE__
6
+ theme: __THEME__
7
+ footer: __TITLE_YAML__
8
+ ---
9
+ --- title
10
+
11
+ # __TITLE__
12
+
13
+ One line on what the audience will take away{.subtitle}
14
+
15
+ **__AUTHOR__**
16
+
17
+ __DATE_LONG__{.meta}
18
+
19
+ ---
20
+
21
+ # Why this matters
22
+
23
+ - **The problem** in one line, with the number that makes it real
24
+ - **What changes** for the audience if it's solved
25
+ - **What this talk covers**, in the order it covers it
26
+
27
+ The one-sentence version of the whole talk.{.lead}
28
+
29
+ === notes
30
+ Speaker notes stay off the slide; press p while presenting to see them.
31
+
32
+ --- section
33
+
34
+ # The idea
35
+
36
+ --- columns 3:2
37
+
38
+ # How it works
39
+
40
+ 1. Start from what the audience already knows
41
+ 2. Add one new concept per slide
42
+ 3. Show it working
43
+
44
+ === col
45
+
46
+ ### Key point
47
+
48
+ A column that opens with `###` becomes a card.
49
+
50
+ ---
51
+
52
+ # In code
53
+
54
+ ```python {2}
55
+ def answer(question):
56
+ return search(question).best()
57
+ ```
58
+
59
+ Highlighted lines carry the point; the rest is context.{.muted}
60
+
61
+ --- section
62
+
63
+ # Next steps
64
+
65
+ ---
66
+
67
+ # What to do next
68
+
69
+ | Step | Owner | When |
70
+ |---|---|---|
71
+ | Try it | You | Today |
72
+ | Share feedback | Everyone | This week |
73
+
74
+ --- title
75
+
76
+ # *Thank* you
77
+
78
+ Questions?{.subtitle}
@@ -0,0 +1,104 @@
1
+ ---
2
+ deck: true
3
+ title: Theme specimen
4
+ footer: "Theme specimen · deck theme check"
5
+ ---
6
+ <!-- Built by `deck theme check` with the theme under test, in light and dark. Every layout, semantic class, and standard element appears here; each class sits next to plain text it is compared with. -->
7
+ --- title
8
+
9
+ # Theme *specimen*
10
+
11
+ Every layout, class, and element{.subtitle}
12
+
13
+ **Author Name**
14
+
15
+ October 4, 2026{.meta}
16
+
17
+ ---
18
+
19
+ # Text and lists
20
+
21
+ A lead sentence that states the point.{.lead}
22
+
23
+ Plain body text with **strong**, *emphasis*, `inline code`, and [a link](https://example.com).
24
+
25
+ - A top-level bullet
26
+ - A nested detail
27
+ - Another bullet
28
+
29
+ Muted text for asides.{.muted}
30
+
31
+ Small print for sources.{.small}
32
+
33
+ Centered text for a statement.{.center}
34
+
35
+ --- section {show}
36
+
37
+ # Classes
38
+
39
+ ---
40
+
41
+ # Callouts and marks
42
+
43
+ Plain text for comparison, with [highlighted]{.hl} words, a [badge]{.badge}, and [removed]{.del} words.
44
+
45
+ A callout that frames a point.{.callout}
46
+
47
+ A note with a side rule.{.note}
48
+
49
+ A warning about a pitfall.{.warn}
50
+
51
+ --- columns 1:1
52
+
53
+ # Columns and cards
54
+
55
+ ### A card
56
+
57
+ A column that opens with `###` becomes a card.
58
+
59
+ === col
60
+
61
+ ### Another card
62
+
63
+ Cards sit side by side.
64
+
65
+ --- columns 1:1
66
+
67
+ # Divided columns
68
+
69
+ Plain columns, divided when the theme sets a column rule.
70
+
71
+ === col
72
+
73
+ The second column.
74
+
75
+ ---
76
+
77
+ # Tables and quotes
78
+
79
+ | Name | Role | Since |
80
+ |---|---|---|
81
+ | Ada | Engineer | 2021 |
82
+ | Lin | Designer | 2023 |
83
+
84
+ > A quote that sets an idea apart from the body text.
85
+
86
+ ---
87
+
88
+ # Code
89
+
90
+ ```python {2}
91
+ # Find the best answer
92
+ def answer(question: str) -> str:
93
+ return search(question, limit=10).best()
94
+ ```
95
+
96
+ ---
97
+
98
+ # Diagram
99
+
100
+ ```mermaid
101
+ flowchart LR
102
+ A[Markdown] --> B[Build]:::accent --> C[HTML]:::dark
103
+ B --> D[Check]:::muted --> E[Ship]:::light
104
+ ```
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2 22 9 12 22 2 9Z" fill="#3a6df0"/><path d="M2 9h20L12 22Z" fill="#2f5bd8"/></svg>
@@ -0,0 +1,97 @@
1
+ /*
2
+ * __NAME__ — a treasure-deck theme. Scaffolded by `deck theme init`; edit freely.
3
+ *
4
+ * runtime/base.css owns structure (the 1280×720 canvas, layouts, image placement); a theme owns color, type,
5
+ * and decoration. Scope every rule under .deck[data-theme="__NAME__"] so themes never leak into each other.
6
+ * Use it from a deck with `theme: ./<this folder>` (a path relative to the deck). Asset references (url with an assets/ path)
7
+ * are inlined at build time, so the built page stays one file.
8
+ */
9
+
10
+ /* Tokens. base.css, the table of contents, and Mermaid diagrams read these; the rules below use them too. */
11
+ .deck[data-theme="__NAME__"] {
12
+ --deck-font-display: 'Inter', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
13
+ --deck-font-body: 'Inter', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
14
+ --deck-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
15
+ --deck-radius: 12px;
16
+ /* Density (defaults in base.css): body 22px, h1 34px, title 52px, code 17px; padding 36px / 56px / 52px.
17
+ --deck-scale-body: 22px; --deck-scale-h1: 34px; --deck-scale-h2: 28px; --deck-scale-h3: 23px;
18
+ --deck-scale-title: 52px; --deck-scale-section: 52px; --deck-scale-code: 17px; --deck-scale-code-solo: 20px; */
19
+ }
20
+
21
+ /* Seed colors for light slides (default_mode: light in theme.yaml). base.css derives the rest from these: --deck-fg-muted,
22
+ --deck-strong, --deck-line, --deck-card, --deck-on-accent, --deck-hl, --deck-chip, --deck-series-1..6, and every
23
+ --deck-diagram-* color for Mermaid. To pin one, set it here (e.g. `--deck-card: #fff;`). Check with `deck theme check`. */
24
+ .deck[data-theme="__NAME__"] .slide {
25
+ --deck-bg: #fbfbfd; --deck-fg: #1d1f2b; --deck-accent: #2f5fd8;
26
+ /* Optional seeds; defaults: accent-2 is the accent's hue turned 150°, warn and ok are a red and a green. */
27
+ --deck-accent-2: #12a594; --deck-warn: #d93d42; --deck-ok: #2f9e5b;
28
+ /* Columns get a divider only when this is set. */
29
+ --deck-col-rule: var(--deck-line);
30
+ background: var(--deck-bg);
31
+ }
32
+
33
+ /* Dark slides: `mode: dark` for the deck, or `{mode=dark}` on one slide. Re-set the seeds; the derived colors follow. */
34
+ .deck[data-theme="__NAME__"][data-mode="dark"] .slide:not([data-mode="light"]),
35
+ .deck[data-theme="__NAME__"] .slide[data-mode="dark"] {
36
+ --deck-bg: #11131c; --deck-fg: #e8e9f2; --deck-accent: #7aa2ff;
37
+ --deck-accent-2: #3ccfb8; --deck-warn: #ff7a7e; --deck-ok: #5fd08a;
38
+ }
39
+
40
+ .deck[data-theme="__NAME__"] .deck-progress { background: var(--deck-accent); }
41
+
42
+ /* Headings and the section eyebrow above content titles. */
43
+ .deck[data-theme="__NAME__"] .slide :is(h1, h2) { color: var(--deck-strong); font-weight: 700; letter-spacing: -.01em; }
44
+ .deck[data-theme="__NAME__"] .slide :is(h1, h2) em { font-style: normal; color: var(--deck-accent); }
45
+ .deck[data-theme="__NAME__"] .slide h3 { color: var(--deck-strong); }
46
+ .deck[data-theme="__NAME__"] .eyebrow { color: var(--deck-fg-muted); }
47
+ .deck[data-theme="__NAME__"] .eyebrow-num { color: var(--deck-accent); }
48
+ .deck[data-theme="__NAME__"] .slide strong { color: var(--deck-strong); }
49
+ .deck[data-theme="__NAME__"] .slide a { color: var(--deck-accent); }
50
+
51
+ /* Lists. Scope to .slide-body so the table of contents keeps its own styling. */
52
+ .deck[data-theme="__NAME__"] .slide-body li::marker { color: var(--deck-accent); }
53
+
54
+ /* Code: dark panels; highlight.js scopes are colored by the --code-* tokens. */
55
+ .deck[data-theme="__NAME__"] .slide code { background: var(--deck-chip); border-radius: 4px; padding: .05em .3em; }
56
+ .deck[data-theme="__NAME__"] .slide pre.code {
57
+ background: #171a26; color: #e4e6f0; border-radius: var(--deck-radius);
58
+ --code-comment: #6c7086; --code-keyword: #cba6f7; --code-string: #a6e3a1; --code-number: #fab387; --code-title: #89b4fa;
59
+ --code-type: #f9e2af; --code-variable: #f5c2e7; --code-operator: #94e2d5; --code-meta: #9399b2;
60
+ }
61
+ .deck[data-theme="__NAME__"] .slide pre.code code { background: none; padding: 0; }
62
+ .deck[data-theme="__NAME__"] .slide pre.code .line.line-hl { background: rgba(255, 255, 255, .08); box-shadow: inset 3px 0 var(--deck-accent); }
63
+
64
+ /* Quotes and tables. */
65
+ .deck[data-theme="__NAME__"] .slide blockquote { margin: 0 0 .6em; padding: .2em 0 .2em 1em; border-left: 3px solid var(--deck-accent); color: var(--deck-fg-muted); }
66
+ .deck[data-theme="__NAME__"] .slide th { background: var(--deck-accent); color: var(--deck-on-accent); font-size: .85em; }
67
+ .deck[data-theme="__NAME__"] .slide td { border-bottom: 1px solid var(--deck-line); }
68
+
69
+ /* Image decorations. */
70
+ .deck[data-theme="__NAME__"] .slide :is(img, video).img-shadow { box-shadow: 0 18px 40px -18px rgba(20, 30, 80, .35); }
71
+ .deck[data-theme="__NAME__"] .slide :is(img, video).img-round { border-radius: var(--deck-radius); }
72
+ .deck[data-theme="__NAME__"] .slide :is(img, video).img-border { border: 1px solid var(--deck-line); }
73
+
74
+ /* Semantic classes: every theme styles all of them, so decks switch themes without edits. */
75
+ .deck[data-theme="__NAME__"] .slide .muted { color: var(--deck-fg-muted); }
76
+ .deck[data-theme="__NAME__"] .slide .lead { color: var(--deck-strong); }
77
+ .deck[data-theme="__NAME__"] .slide .subtitle { font-size: 1.3em; color: var(--deck-fg-muted); margin-top: .2em; }
78
+ .deck[data-theme="__NAME__"] .slide .meta { font-size: .8em; color: var(--deck-fg-muted); }
79
+ .deck[data-theme="__NAME__"] .slide .hl { background: linear-gradient(transparent 60%, var(--deck-hl) 60%); }
80
+ .deck[data-theme="__NAME__"] .slide .badge {
81
+ display: inline-block; vertical-align: middle; padding: .15em .6em; border-radius: 999px;
82
+ font-size: .62em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--deck-on-accent); background: var(--deck-accent);
83
+ }
84
+ .deck[data-theme="__NAME__"] .slide :is(.callout, .note, .warn) { padding: .6em .9em; border-radius: 8px; background: var(--deck-card); border-left: 3px solid var(--deck-accent); }
85
+ .deck[data-theme="__NAME__"] .slide .callout { box-shadow: 0 0 0 1px var(--deck-line); }
86
+ .deck[data-theme="__NAME__"] .slide .warn { border-left-color: var(--deck-warn); }
87
+
88
+ /* Columns: a column that opens with ### is a card. */
89
+ .deck[data-theme="__NAME__"] .layout-columns .col:has(> h3:first-child) { padding: 16px 18px; background: var(--deck-card); border-radius: var(--deck-radius); box-shadow: 0 0 0 1px var(--deck-line); }
90
+
91
+ /* Title and section slides. */
92
+ .deck[data-theme="__NAME__"] .layout-title h1 { letter-spacing: -.02em; }
93
+ .deck[data-theme="__NAME__"] .layout-section .section-num { color: var(--deck-accent); }
94
+
95
+ /* Footer banner: the brand slot at bottom left, then the deck's footer: text and the page number. */
96
+ .deck[data-theme="__NAME__"] .slide-footer { color: var(--deck-fg-muted); }
97
+ .deck[data-theme="__NAME__"] .footer-brand::before { content: ''; width: 18px; height: 18px; background: url(assets/mark.svg) center / contain no-repeat; }
@@ -0,0 +1,7 @@
1
+ name: __NAME__
2
+ description: A custom treasure-deck theme
3
+ default_mode: light
4
+ # Google Fonts families to load (the same syntax as fonts.googleapis.com/css2?family=…).
5
+ fonts:
6
+ - "Inter:wght@400;500;600;700"
7
+ - "JetBrains Mono:wght@400;500"
@@ -0,0 +1,183 @@
1
+ /*
2
+ * default — the unbranded theme. Plain at heart (white slides, near-black ink, Inter, no logo) with a little polish:
3
+ * an indigo → violet accent gradient, a soft glow and dot grid on the title, color-block section slides, raised cards,
4
+ * and dark code panels. Everything follows the accent, so `accent:` in the frontmatter recolors it all.
5
+ */
6
+ .deck[data-theme="default"] {
7
+ --deck-font-display: 'Inter', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
8
+ --deck-font-body: 'Inter', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
9
+ --deck-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
10
+ --deck-radius: 12px;
11
+ --deck-scale-title: 60px; --deck-scale-section: 56px;
12
+ }
13
+ .deck[data-theme="default"] .slide {
14
+ --deck-bg: #ffffff; --deck-fg: #1d2129; --deck-accent: #5e6ad2; --deck-accent-2: #7654dd;
15
+ --deck-strong: #0b0d12; --deck-fg-muted: #5b616b; --deck-card: #f6f7f9; --deck-col-rule: var(--deck-line);
16
+ /* Raised surfaces (cards, tables) and the soft glow in the corners. */
17
+ --raised: #ffffff; --raised-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -18px rgba(15, 23, 42, .28);
18
+ --glow: 7%;
19
+ --grad: linear-gradient(90deg, var(--deck-accent), var(--deck-accent-2));
20
+ background:
21
+ radial-gradient(55% 60% at 100% 0%, color-mix(in oklab, var(--deck-accent) var(--glow), transparent), transparent 70%),
22
+ radial-gradient(45% 55% at 85% 100%, color-mix(in oklab, var(--deck-accent-2) calc(var(--glow) * .7), transparent), transparent 70%),
23
+ var(--deck-bg);
24
+ }
25
+ /* Dark slides: `mode: dark` for the deck, or `{mode=dark}` on one slide. */
26
+ .deck[data-theme="default"][data-mode="dark"] .slide:not([data-mode="light"]),
27
+ .deck[data-theme="default"] .slide[data-mode="dark"] {
28
+ --deck-bg: #0c0e13; --deck-fg: #e4e7ed; --deck-accent: #8e97f0; --deck-accent-2: #b4a6f7;
29
+ --deck-strong: #ffffff; --deck-fg-muted: #a0a7b2; --deck-card: #161a21;
30
+ --raised: #14171d; --raised-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 16px 36px -18px rgba(0, 0, 0, .8);
31
+ --glow: 12%;
32
+ }
33
+
34
+ .deck[data-theme="default"] .deck-progress { background: linear-gradient(90deg, #5e6ad2, #7654dd); }
35
+
36
+ /* Headings: tight Inter Bold; *accent* words carry the accent gradient. */
37
+ .deck[data-theme="default"] .slide :is(h1, h2) { color: var(--deck-strong); font-weight: 700; letter-spacing: -.02em; }
38
+ .deck[data-theme="default"] .slide :is(h1, h2) em {
39
+ font-style: normal; padding-right: .03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
40
+ }
41
+ .deck[data-theme="default"] .slide h3 { color: var(--deck-strong); font-weight: 650; letter-spacing: -.01em; }
42
+ .deck[data-theme="default"] .slide strong { color: var(--deck-strong); font-weight: 600; }
43
+ .deck[data-theme="default"] .slide a { color: var(--deck-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
44
+
45
+ /* Header: the section in a small chip above the title, then a hairline that starts with a gradient stroke. */
46
+ .deck[data-theme="default"] .slide-header { padding-bottom: 14px; }
47
+ .deck[data-theme="default"] .slide-header::before {
48
+ content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--deck-line);
49
+ }
50
+ .deck[data-theme="default"] .slide-header::after {
51
+ content: ''; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 2px; background: var(--grad);
52
+ }
53
+ .deck[data-theme="default"] .eyebrow { align-items: center; color: var(--deck-fg-muted); }
54
+ .deck[data-theme="default"] .eyebrow-num {
55
+ padding: 2px 7px; border-radius: 6px; font: 600 11px var(--deck-font-mono); letter-spacing: 0;
56
+ color: color-mix(in oklab, var(--deck-accent) 78%, var(--deck-strong)); background: var(--deck-chip);
57
+ }
58
+
59
+ /* Lists: gradient squares at the top level, hollow rings below. */
60
+ .deck[data-theme="default"] .slide-body ul { list-style: none; padding-left: 1.1em; }
61
+ .deck[data-theme="default"] .slide-body ul > li { position: relative; }
62
+ .deck[data-theme="default"] .slide-body ul > li::before {
63
+ content: ''; position: absolute; left: -.95em; top: .52em; width: .36em; height: .36em; border-radius: 2px; background: var(--grad);
64
+ }
65
+ .deck[data-theme="default"] .slide-body li > ul > li::before { top: .5em; width: .34em; height: .34em; border-radius: 50%; background: none; border: 1.5px solid var(--deck-fg-muted); }
66
+ .deck[data-theme="default"] .slide-body ol > li::marker { color: var(--deck-accent); font-weight: 650; font-variant-numeric: tabular-nums; }
67
+
68
+ /* Code: a dark panel on every slide, with line numbers and the language in the corner. */
69
+ .deck[data-theme="default"] .slide code { background: color-mix(in oklab, var(--deck-fg) 7%, transparent); border-radius: 5px; padding: .05em .32em; }
70
+ .deck[data-theme="default"] .slide pre.code {
71
+ position: relative; counter-reset: ln; background: #0f1420; color: #e6edf3; border-radius: var(--deck-radius);
72
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 18px 36px -20px rgba(15, 23, 42, .65);
73
+ --code-comment: #8b949e; --code-keyword: #ff7b72; --code-string: #a5d6ff; --code-number: #79c0ff; --code-title: #d2a8ff;
74
+ --code-type: #ffa657; --code-variable: #ffa657; --code-operator: #c9d1d9; --code-meta: #8b949e;
75
+ }
76
+ .deck[data-theme="default"][data-mode="dark"] .slide:not([data-mode="light"]) pre.code,
77
+ .deck[data-theme="default"] .slide[data-mode="dark"] pre.code { background: #151a26; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 36px -20px rgba(0, 0, 0, .8); }
78
+ .deck[data-theme="default"] .slide pre.code code { color: inherit; background: none; padding: 0; font-size: 1em; }
79
+ .deck[data-theme="default"] .slide pre.code .line { position: relative; padding-left: 3.4em; }
80
+ .deck[data-theme="default"] .slide pre.code .line::before {
81
+ counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 2.4em; text-align: right; color: #5c6574;
82
+ }
83
+ .deck[data-theme="default"] .slide pre.code[data-lang]::after {
84
+ content: attr(data-lang); position: absolute; top: 9px; right: 14px; font: 600 10px var(--deck-font-mono);
85
+ letter-spacing: .14em; text-transform: uppercase; color: #7d8696;
86
+ }
87
+ .deck[data-theme="default"] .slide pre.code.has-line-hl .line:not(.line-hl) { opacity: .5; }
88
+ .deck[data-theme="default"] .slide pre.code .line.line-hl { background: rgba(142, 151, 240, .15); box-shadow: inset 3px 0 #8e97f0; }
89
+ .deck[data-theme="default"] .slide pre.code .line.line-hl::before { color: #c3c8fa; }
90
+
91
+ /* Quotes: larger text behind a gradient rule. */
92
+ .deck[data-theme="default"] .slide blockquote {
93
+ margin: 0 0 .6em; padding: .15em 0 .15em 1em; font-size: 1.08em; color: var(--deck-fg);
94
+ border-left: 3px solid; border-image: linear-gradient(180deg, var(--deck-accent), var(--deck-accent-2)) 1;
95
+ }
96
+
97
+ /* Tables: a raised panel with a tinted header row. */
98
+ .deck[data-theme="default"] .slide table {
99
+ border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 10px;
100
+ background: var(--raised); box-shadow: var(--raised-shadow), 0 0 0 1px var(--deck-line);
101
+ }
102
+ .deck[data-theme="default"] .slide th {
103
+ color: var(--deck-strong); font-weight: 650; font-size: .78em; letter-spacing: .05em; text-transform: uppercase;
104
+ background: color-mix(in oklab, var(--deck-accent) 8%, var(--raised)); border-bottom: 1px solid var(--deck-line);
105
+ }
106
+ .deck[data-theme="default"] .slide :is(th, td) { padding-left: 16px; padding-right: 16px; }
107
+ .deck[data-theme="default"] .slide td { border-bottom: 1px solid var(--deck-line); font-variant-numeric: tabular-nums; }
108
+ .deck[data-theme="default"] .slide tr:last-child td { border-bottom: 0; }
109
+ .deck[data-theme="default"] .slide td:first-child { color: var(--deck-strong); font-weight: 500; }
110
+
111
+ /* Images. */
112
+ .deck[data-theme="default"] .slide :is(img, video).img-shadow { box-shadow: 0 20px 44px -18px rgba(15, 23, 42, .4), 0 0 0 1px rgba(15, 23, 42, .06); }
113
+ .deck[data-theme="default"] .slide :is(img, video).img-round { border-radius: var(--deck-radius); }
114
+ .deck[data-theme="default"] .slide :is(img, video).img-border { border: 1px solid var(--deck-line); }
115
+
116
+ /* Semantic classes. */
117
+ .deck[data-theme="default"] .slide .muted { color: var(--deck-fg-muted); }
118
+ .deck[data-theme="default"] .slide .lead { color: var(--deck-strong); line-height: 1.35; letter-spacing: -.01em; }
119
+ .deck[data-theme="default"] .slide .subtitle { font-size: 1.3em; color: var(--deck-fg-muted); margin-top: .2em; letter-spacing: -.01em; }
120
+ .deck[data-theme="default"] .slide .meta { font-size: .78em; color: var(--deck-fg-muted); }
121
+ .deck[data-theme="default"] .slide .hl { background: linear-gradient(transparent 58%, var(--deck-hl) 58%); }
122
+ .deck[data-theme="default"] .slide .badge {
123
+ display: inline-block; vertical-align: middle; padding: .22em .7em; border-radius: 999px;
124
+ font-size: .6em; font-weight: 650; letter-spacing: .04em; color: var(--deck-on-accent); background: var(--grad);
125
+ }
126
+ .deck[data-theme="default"] .slide :is(.callout, .note, .warn) { padding: .65em 1em; border-radius: 10px; border-left: 3px solid var(--deck-accent); }
127
+ .deck[data-theme="default"] .slide .callout { background: color-mix(in oklab, var(--deck-accent) 7%, var(--deck-bg)); }
128
+ .deck[data-theme="default"] .slide .note { background: var(--deck-card); border-left-color: var(--deck-fg-muted); }
129
+ .deck[data-theme="default"] .slide .warn { background: color-mix(in oklab, var(--deck-warn) 8%, var(--deck-bg)); border-left-color: var(--deck-warn); }
130
+
131
+ /* Columns: a column that opens with ### is a raised card with a gradient top edge. */
132
+ .deck[data-theme="default"] .layout-columns .col:has(> h3:first-child) {
133
+ padding: 18px 20px 14px; border-radius: var(--deck-radius);
134
+ background: var(--grad) top / 100% 3px no-repeat, var(--raised); box-shadow: var(--raised-shadow), 0 0 0 1px var(--deck-line);
135
+ }
136
+
137
+ /* Title: big type at left over a soft glow and a dot grid that fades in from the right. */
138
+ .deck[data-theme="default"] .layout-title:not(.has-bg) {
139
+ --glow: 22%;
140
+ background:
141
+ radial-gradient(48% 70% at 92% 30%, color-mix(in oklab, var(--deck-accent) var(--glow), transparent), transparent 70%),
142
+ radial-gradient(42% 60% at 78% 100%, color-mix(in oklab, var(--deck-accent-2) var(--glow), transparent), transparent 70%),
143
+ var(--deck-bg);
144
+ }
145
+ .deck[data-theme="default"][data-mode="dark"] .layout-title:not([data-mode="light"]):not(.has-bg),
146
+ .deck[data-theme="default"] .layout-title[data-mode="dark"]:not(.has-bg) { --glow: 28%; }
147
+ .deck[data-theme="default"] :is(.layout-title, .layout-section):not(.has-bg)::before {
148
+ content: ''; position: absolute; inset: 0; pointer-events: none;
149
+ background: radial-gradient(circle, color-mix(in oklab, var(--deck-fg) 22%, transparent) 1.2px, transparent 1.8px) 0 0 / 24px 24px;
150
+ -webkit-mask-image: radial-gradient(60% 85% at 100% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 85% at 100% 50%, #000, transparent 75%);
151
+ }
152
+ .deck[data-theme="default"] .layout-title .slide-body { padding: 40px 300px 60px 96px; }
153
+ .deck[data-theme="default"] .layout-title h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-bottom: .3em; }
154
+ .deck[data-theme="default"] .layout-title h1::before { content: ''; display: block; width: 64px; height: 6px; margin-bottom: 30px; border-radius: 3px; background: var(--grad); }
155
+ .deck[data-theme="default"] .layout-title .subtitle { margin-bottom: .9em; }
156
+
157
+ /* Section: a full-bleed accent color block, white type, and a large number. Lightness is capped so white type reads
158
+ whatever the accent. */
159
+ .deck[data-theme="default"] .layout-section:not(.has-bg) {
160
+ --deck-bg: oklch(from var(--deck-accent) min(l, .46) c h);
161
+ --deck-fg: #ffffff; --deck-strong: #ffffff; --deck-fg-muted: rgba(255, 255, 255, .82); --deck-line: rgba(255, 255, 255, .2);
162
+ background:
163
+ radial-gradient(60% 80% at 90% 10%, oklch(from var(--deck-accent) min(l, .56) c h), transparent 70%),
164
+ radial-gradient(55% 75% at 80% 100%, oklch(from var(--deck-accent-2) min(l, .5) c h), transparent 70%),
165
+ linear-gradient(135deg, oklch(from var(--deck-accent) min(l, .36) c h), var(--deck-bg));
166
+ }
167
+ .deck[data-theme="default"] .layout-section:not(.has-bg)::before { background-image: radial-gradient(circle, rgba(255, 255, 255, .22) 1.2px, transparent 1.8px); }
168
+ .deck[data-theme="default"] .layout-section .slide-body { padding-left: 96px; padding-right: 96px; }
169
+ .deck[data-theme="default"] .layout-section .section-num {
170
+ font-size: 168px; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .86);
171
+ }
172
+ .deck[data-theme="default"] .layout-section :is(h1, h2) { font-weight: 800; letter-spacing: -.03em; color: #fff; }
173
+ .deck[data-theme="default"] .layout-section :is(h1, h2) em { background: linear-gradient(90deg, #ffffff, #dcd3ff); -webkit-background-clip: text; background-clip: text; }
174
+
175
+ /* Footer: no brand mark, just the deck's footer: text and the page number. */
176
+ .deck[data-theme="default"] .slide-footer { color: var(--deck-fg-muted); }
177
+ .deck[data-theme="default"] .page-number { font-family: var(--deck-font-mono); font-size: 11px; }
178
+
179
+ /* Print/PDF: Apple's renderer drops gradient-clipped text, so accent words print in the accent color. */
180
+ @media print {
181
+ .deck[data-theme="default"] .slide :is(h1, h2) em { background: none !important; color: var(--deck-accent) !important; -webkit-text-fill-color: currentColor; }
182
+ .deck[data-theme="default"] .layout-section :is(h1, h2) em { color: #fff !important; }
183
+ }
@@ -0,0 +1,6 @@
1
+ name: default
2
+ description: Clean and neutral — white or near-black slides, Inter type, an indigo → violet accent gradient, color-block sections, no brand
3
+ default_mode: light
4
+ fonts:
5
+ - "Inter:wght@400;500;600;700"
6
+ - "JetBrains Mono:wght@400;500"