@treasure-ai/treasure-deck 2026.11.0 → 2026.11.2
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/dist/build.d.ts +3 -0
- package/dist/build.js +4 -2
- package/dist/build.js.map +1 -1
- package/dist/cli.js +77 -1
- package/dist/cli.js.map +1 -1
- package/dist/deckstyle.d.ts +137 -0
- package/dist/deckstyle.js +722 -0
- package/dist/deckstyle.js.map +1 -0
- package/dist/dev.d.ts +6 -0
- package/dist/dev.js +27 -1
- package/dist/dev.js.map +1 -1
- package/dist/parse.d.ts +6 -0
- package/dist/parse.js +15 -0
- package/dist/parse.js.map +1 -1
- package/dist/render.d.ts +10 -1
- package/dist/render.js +16 -3
- package/dist/render.js.map +1 -1
- package/dist/slides.d.ts +168 -0
- package/dist/slides.js +615 -0
- package/dist/slides.js.map +1 -0
- package/dist/slidesexport.d.ts +32 -0
- package/dist/slidesexport.js +44 -0
- package/dist/slidesexport.js.map +1 -0
- package/dist/slideslayout.d.ts +68 -0
- package/dist/slideslayout.js +588 -0
- package/dist/slideslayout.js.map +1 -0
- package/dist/themecheck.d.ts +1 -1
- package/docs/commands.md +22 -0
- package/docs/editor.md +21 -3
- package/docs/syntax.md +4 -1
- package/docs/themes.md +1 -0
- package/package.json +1 -1
- package/runtime/base.css +12 -8
- package/runtime/edit-core.cjs +58 -0
- package/runtime/embed.js +363 -54
- package/skills/treasure-deck/SKILL.md +3 -3
- package/templates/specimen/specimen.md +2 -0
- package/themes/editorial/theme.css +1 -1
- package/themes/gold/theme.css +2 -2
- package/themes/treasure-ai/theme.css +2 -2
- package/themes/treasure-ai-2026/theme.css +4 -4
- package/themes/wvlet/theme.css +2 -2
|
@@ -114,7 +114,7 @@ A video (`.mp4`, `.webm`, `.mov`, `.m4v`) takes the same syntax and attributes,
|
|
|
114
114
|
|
|
115
115
|
### Tables
|
|
116
116
|
|
|
117
|
-
GFM tables. Braces at the end of a **header cell** apply to its column: `w=` sets its width (canvas px or `%` of the table), `nowrap` keeps it on one line, and `wrap` lets it wrap in a `nowrap` table. Braces on the **line after the table** apply to the whole table: `nowrap`, `w=` (`w=100%` spans the column), or a class.
|
|
117
|
+
GFM tables. Braces at the end of a **header cell** apply to its column: `w=` sets its width (canvas px or `%` of the table), `nowrap` keeps it on one line, and `wrap` lets it wrap in a `nowrap` table. Braces on the **line after the table** apply to the whole table: `nowrap`, `w=` (`w=100%` spans the column), `center` or `right` (its place in the column), or a class.
|
|
118
118
|
|
|
119
119
|
```markdown
|
|
120
120
|
| Metric {w=200} | Q2 {nowrap} | Q3 {nowrap} | Notes |
|
|
@@ -133,7 +133,7 @@ Reach for `nowrap` on short label, number, and unit columns that break awkwardly
|
|
|
133
133
|
|
|
134
134
|
### Classes
|
|
135
135
|
|
|
136
|
-
- Blocks: `{.lead}` (the key sentence, 1.2× body size), `{.muted}`, `{.small}` (sources, footnotes), `{.center}` (horizontal
|
|
136
|
+
- Blocks: `{.lead}` (the key sentence, 1.2× body size), `{.muted}`, `{.small}` (sources, footnotes), `{.center}` and `{.right}` (horizontal alignment only), `{.subtitle}` and `{.meta}` (title slides; under a columns slide's heading, a `{.subtitle}` spans all columns), `{.callout}`, `{.note}`, `{.warn}` (boxed asides).
|
|
137
137
|
- Spans: `[text]{.hl}`, `[new]{.badge}`, `[old]{.del}`.
|
|
138
138
|
- `{.steps}` under a numbered list draws it as a row of chevrons, a progress bar for a procedure; bold the current step (`3. **Folder**`). Repeat it on each step's slide with the next step bold.
|
|
139
139
|
- `:name:` is a [Lucide](https://lucide.dev/icons/) icon in the text's color, e.g. `### :shield-check: Read-only`. A card heading or a list item that opens with an icon reads best (in a list it replaces the bullet). Put a space or punctuation before it; a name Lucide doesn't have stays as text, so check the slide.
|
|
@@ -305,7 +305,7 @@ The canvas is 1280×720 with 21–22px body text, so slides hold real content
|
|
|
305
305
|
|
|
306
306
|
## Fixing `deck check` findings
|
|
307
307
|
|
|
308
|
-
- **Overflows the bottom:** cut words first, then split the slide, then move detail to notes. `--- {fit}` 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.
|
|
308
|
+
- **Overflows the bottom:** cut words first, then split the slide, then move detail to notes. `--- {fit}` 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. `text_size: 90%` in the frontmatter scales every slide's text (50% to 200%); set it only when the user asks for smaller or larger text across the whole deck, not to fix one slide.
|
|
309
309
|
- **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).
|
|
310
310
|
- **Wide table:** abbreviate headers, drop a column, give the long column a `{w=…}` so the others stop wrapping, or move the table to its own slide.
|
|
311
311
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
/* Headings: Playfair Display, with *accent* words in its italic and the accent color. */
|
|
41
41
|
.deck[data-theme="editorial"] .slide :is(h1, h2) { color: var(--deck-strong); font-weight: 700; letter-spacing: -.005em; }
|
|
42
42
|
.deck[data-theme="editorial"] .slide :is(h1, h2) em { font-style: italic; font-weight: 600; color: var(--deck-accent); }
|
|
43
|
-
.deck[data-theme="editorial"] .slide h3 { font-family: var(--deck-font-display); font-weight: 700; font-size: 24px; color: var(--deck-strong); }
|
|
43
|
+
.deck[data-theme="editorial"] .slide h3 { font-family: var(--deck-font-display); font-weight: 700; font-size: calc(24px * var(--deck-text-scale, 1)); color: var(--deck-strong); }
|
|
44
44
|
.deck[data-theme="editorial"] .slide strong { color: var(--deck-strong); font-weight: 650; }
|
|
45
45
|
.deck[data-theme="editorial"] .slide em { font-style: italic; }
|
|
46
46
|
.deck[data-theme="editorial"] .slide a { color: var(--deck-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
package/themes/gold/theme.css
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
animation: gold-shimmer 8s linear infinite;
|
|
105
105
|
}
|
|
106
106
|
@keyframes gold-shimmer { to { background-position: -200% 0; } }
|
|
107
|
-
.deck[data-theme="gold"] .slide h3 { font-weight: 650; font-size: 21px; letter-spacing: -.01em; color: var(--deck-fg); }
|
|
107
|
+
.deck[data-theme="gold"] .slide h3 { font-weight: 650; font-size: calc(21px * var(--deck-text-scale, 1)); letter-spacing: -.01em; color: var(--deck-fg); }
|
|
108
108
|
.deck[data-theme="gold"] .slide strong { font-weight: 650; }
|
|
109
109
|
.deck[data-theme="gold"] .slide a { color: var(--deck-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
|
110
110
|
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
.deck[data-theme="gold"] .slide[data-mode="dark"] thead { background: hsl(220 12% 25%); }
|
|
170
170
|
.deck[data-theme="gold"][data-mode="dark"] .slide:not([data-mode="light"]) th,
|
|
171
171
|
.deck[data-theme="gold"] .slide[data-mode="dark"] th { color: hsl(var(--primary)); text-shadow: none; border-bottom: 1px solid var(--deck-line); }
|
|
172
|
-
.deck[data-theme="gold"] .slide th { padding: 10px 16px 10px; font-size: 14px; font-weight: 700; color: #fffaf0; text-shadow: 0 1px 2px hsl(28 70% 25% / .45); }
|
|
172
|
+
.deck[data-theme="gold"] .slide th { padding: 10px 16px 10px; font-size: calc(14px * var(--deck-text-scale, 1)); font-weight: 700; color: #fffaf0; text-shadow: 0 1px 2px hsl(28 70% 25% / .45); }
|
|
173
173
|
.deck[data-theme="gold"] .slide td { padding-left: 16px; padding-right: 16px; border-bottom: 1px solid var(--deck-line); }
|
|
174
174
|
.deck[data-theme="gold"] .slide tr:last-child td { border-bottom: 0; }
|
|
175
175
|
.deck[data-theme="gold"] .slide td:first-child { font-weight: 650; color: var(--heading); }
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
.deck[data-theme="treasure-ai"] .slide h2 em {
|
|
91
91
|
font-style: normal; background: linear-gradient(90deg, var(--ta-violet), var(--ta-peri) 45%, var(--ta-blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
|
|
92
92
|
}
|
|
93
|
-
.deck[data-theme="treasure-ai"] .slide h3 { color: var(--deck-fg); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
|
|
93
|
+
.deck[data-theme="treasure-ai"] .slide h3 { color: var(--deck-fg); font-weight: 700; font-size: calc(20px * var(--deck-text-scale, 1)); letter-spacing: -.01em; }
|
|
94
94
|
.deck[data-theme="treasure-ai"] .slide strong { font-weight: 650; color: var(--deck-fg); }
|
|
95
95
|
.deck[data-theme="treasure-ai"] .slide a { color: var(--ta-link); }
|
|
96
96
|
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
|
|
118
118
|
.deck[data-theme="treasure-ai"] .slide table { border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 10px; background: var(--deck-card); box-shadow: 0 10px 28px -16px var(--ta-shadow), 0 0 0 1px var(--deck-line); }
|
|
119
119
|
.deck[data-theme="treasure-ai"] .slide thead { background: linear-gradient(90deg, var(--ta-deep), var(--ta-indigo) 70%, #4a4fc0); }
|
|
120
|
-
.deck[data-theme="treasure-ai"] .slide th { padding: 10px 16px 9px; font-size: 14px; font-weight: 700; color: #fff; background: none; }
|
|
120
|
+
.deck[data-theme="treasure-ai"] .slide th { padding: 10px 16px 9px; font-size: calc(14px * var(--deck-text-scale, 1)); font-weight: 700; color: #fff; background: none; }
|
|
121
121
|
.deck[data-theme="treasure-ai"] .slide td { padding-left: 16px; padding-right: 16px; }
|
|
122
122
|
.deck[data-theme="treasure-ai"] .slide td { border-bottom: 1px solid var(--deck-line); }
|
|
123
123
|
.deck[data-theme="treasure-ai"] .slide tr:last-child td { border-bottom: 0; }
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
.deck[data-theme="treasure-ai-2026"] .slide :is(h1, h2) em {
|
|
107
107
|
font-style: normal; background: linear-gradient(90deg, var(--tx-purple), var(--tx-magenta)); -webkit-background-clip: text; background-clip: text; color: transparent;
|
|
108
108
|
}
|
|
109
|
-
.deck[data-theme="treasure-ai-2026"] .slide h3 { font-family: var(--deck-font-display); color: var(--deck-strong); font-weight: 700; font-size: 21px; letter-spacing: -.005em; }
|
|
109
|
+
.deck[data-theme="treasure-ai-2026"] .slide h3 { font-family: var(--deck-font-display); color: var(--deck-strong); font-weight: 700; font-size: calc(21px * var(--deck-text-scale, 1)); letter-spacing: -.005em; }
|
|
110
110
|
.deck[data-theme="treasure-ai-2026"] .slide-header { margin-bottom: 20px; padding-top: 4px; }
|
|
111
111
|
/* Eyebrow: the section number, a short purple → blue hairline, then the section name. */
|
|
112
112
|
.deck[data-theme="treasure-ai-2026"] .eyebrow { font-family: var(--deck-font-display); font-weight: 700; letter-spacing: .14em; color: var(--tx-sub); margin-bottom: 10px; align-items: center; gap: 12px; }
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
/* Tables: a purple header row with white small caps, lavender rules. */
|
|
157
157
|
.deck[data-theme="treasure-ai-2026"] .slide table { border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 12px; background: var(--deck-card); box-shadow: 0 18px 40px -26px var(--tx-shadow), 0 0 0 1px var(--deck-line); }
|
|
158
158
|
.deck[data-theme="treasure-ai-2026"] .slide thead { background: linear-gradient(90deg, var(--tx-purple-text), var(--tx-blue)); }
|
|
159
|
-
.deck[data-theme="treasure-ai-2026"] .slide th { padding: 10px 16px 9px; font-size: 14px; font-weight: 700; color: #fff; background: none; }
|
|
159
|
+
.deck[data-theme="treasure-ai-2026"] .slide th { padding: 10px 16px 9px; font-size: calc(14px * var(--deck-text-scale, 1)); font-weight: 700; color: #fff; background: none; }
|
|
160
160
|
.deck[data-theme="treasure-ai-2026"] .slide td { padding-left: 16px; padding-right: 16px; border-bottom: 1px solid var(--deck-line); }
|
|
161
161
|
.deck[data-theme="treasure-ai-2026"] .slide tbody tr:nth-child(even) td { background: color-mix(in oklab, var(--tx-tint) 60%, transparent); }
|
|
162
162
|
.deck[data-theme="treasure-ai-2026"] .slide tr:last-child td { border-bottom: 0; }
|
|
@@ -212,12 +212,12 @@
|
|
|
212
212
|
box-shadow: 0 20px 40px -30px var(--tx-shadow);
|
|
213
213
|
}
|
|
214
214
|
.deck[data-theme="treasure-ai-2026"] .layout-columns .col > h3:first-child {
|
|
215
|
-
margin: 0 0 .4em; font-size: 20px; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; color: var(--tx-sub);
|
|
215
|
+
margin: 0 0 .4em; font-size: calc(20px * var(--deck-text-scale, 1)); font-weight: 700; letter-spacing: -.005em; line-height: 1.3; color: var(--tx-sub);
|
|
216
216
|
}
|
|
217
217
|
.deck[data-theme="treasure-ai-2026"] .layout-columns .col:has(> h3:first-child) > :not(h3:first-child) { font-size: .86em; }
|
|
218
218
|
/* A column (or card) opening with ####: a purple → blue header bar with a white label, as in the template's tables. */
|
|
219
219
|
.deck[data-theme="treasure-ai-2026"] .slide .col > h4:first-child {
|
|
220
|
-
margin: 0 0 .7em; padding: .4em 1em; border-radius: 6px; text-align: center; font-family: var(--deck-font-display); font-size: 16px; font-weight: 700;
|
|
220
|
+
margin: 0 0 .7em; padding: .4em 1em; border-radius: 6px; text-align: center; font-family: var(--deck-font-display); font-size: calc(16px * var(--deck-text-scale, 1)); font-weight: 700;
|
|
221
221
|
color: #fff; background: linear-gradient(90deg, var(--tx-purple-text), var(--tx-blue));
|
|
222
222
|
}
|
|
223
223
|
.deck[data-theme="treasure-ai-2026"] .slide .col > h4:first-child > .icon { color: inherit; }
|
package/themes/wvlet/theme.css
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; border-radius: 2px;
|
|
64
64
|
background: linear-gradient(90deg, var(--teal-deep), var(--teal) 14%, var(--teal-bright) 32%, rgba(0, 194, 216, .35) 60%, transparent);
|
|
65
65
|
}
|
|
66
|
-
.deck[data-theme="wvlet"] .slide h3 { font-weight: 700; font-size: 20px; color: var(--teal-ink); }
|
|
66
|
+
.deck[data-theme="wvlet"] .slide h3 { font-weight: 700; font-size: calc(20px * var(--deck-text-scale, 1)); color: var(--teal-ink); }
|
|
67
67
|
.deck[data-theme="wvlet"] .slide strong { font-weight: 700; color: var(--deck-strong); }
|
|
68
68
|
.deck[data-theme="wvlet"] .slide a { color: var(--coral-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
|
69
69
|
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
}
|
|
164
164
|
.deck[data-theme="wvlet"] .layout-section h1,
|
|
165
165
|
.deck[data-theme="wvlet"] .layout-section h2 {
|
|
166
|
-
align-self: flex-start; padding: 30px 36px; font: 500 var(--deck-scale-section) var(--deck-font-mono); letter-spacing: -.02em; text-shadow: none;
|
|
166
|
+
align-self: flex-start; padding: 30px 36px; font: 500 calc(var(--deck-scale-section) * var(--deck-text-scale, 1)) var(--deck-font-mono); letter-spacing: -.02em; text-shadow: none;
|
|
167
167
|
color: var(--navy-ink); border: 1px solid rgba(160, 235, 245, .22); border-radius: 8px;
|
|
168
168
|
background: linear-gradient(135deg, rgba(30, 34, 58, .86), rgba(36, 44, 74, .72) 50%, rgba(4, 110, 122, .6));
|
|
169
169
|
-webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
|