A tour of every treasure-deck feature, written in treasure-deck
Treasure Work · Treasure AI
October 3, 2026
<div> markup — layouts, columns, and image placement are Markdown plus a few keywordspnpm deck build talk.md --theme treasure-ai # → talk.htmlpnpm deck dev talk.md # live reload at localhost:4300
| Syntax | Meaning |
|---|---|
--- |
Next slide |
--- <layout> {attrs} |
Next slide with a layout |
=== col |
Next column |
{.class key=value} |
Attributes |
=== notes |
Speaker notes |
Everything else is plain CommonMark + GFM.
--- columns 3:2 # About Me - Maintainer of **Example Project** === col {h=400 shadow} === notesMention a recent project.
The default: a header and a body. Lists, tables, code, and images flow inside.
Opening slide. # Title, then {.subtitle} and {.meta} lines.
Starts a numbered section (01, 02, …). The divider slide is hidden unless {show}.
Split by === col. Ratios like 3:2 or 1:1:1.
A --- columns 2:1 slide gives the first column two thirds of the width. Columns are divided by a hairline in themes that set one.
=== col on its own line to start the next column=== col becomes a columns slide automatically# heading spans all columns### becomes a card--- columns 2:1 # Columns with ratios Main text… === col Side notes…
The small label above this title — the section number and name — comes from the most recent --- section. Authors write nothing extra.
--- section {show} (like the “Writing slides” divider) or section_slides: true shows them--- {hide} drafts a slide out of the build; --- {fit} shrinks a dense slide’s body to fitt shows a table of contents column listing the sections; toc: sidebar shows it from the startfooter: text follows itNavigation, page numbers, transitions, and Japanese typesetting have no settings — the defaults are the design.
| Attribute | Effect |
|---|---|
w= / h= |
Size in canvas px (h=150) or percent of the column (w=50%) |
shadow round circle border |
Decoration, drawn by the theme |
fit / cover |
Fill the column (contain / crop) |
left center right |
Alignment; several images in one paragraph form a row |
Command-line editor of Wvlet (wv)
The Markdown image title becomes a caption under the image:

Each theme styles captions its own way — a teal chip in Wvlet, a quiet label elsewhere.
{side=right w=42%} turns an image into a full-height panel and makes the slide a split — no layout needed.
side=left or side=rightw= sets the panel width (default 45%)--- {bg=photo.jpg dim=0.35} on the slide header, or {bg} on an image, fills the slide. dim= adds a dark scrim and blur= softens the photo.
{at=top-right w=150} pins an image to one of nine anchors — top-left through bottom-right — or to exact coordinates with at=72%,18%.
w= and decorations as usualA video file takes image syntax, so it sizes, aligns, and pins the same way:
{w=100% round autoplay loop}
autoplay: plays, muted, when the slide is shownloop: plays again from the startnocontrols: hides the play barA clip made in the browser
Lead paragraph for the key point.
Muted text for secondary detail.
Inline highlight and a new badge.
Small print for sources and footnotes.
A callout for an aside that deserves a box.
A note with a side rule.
A warning when something can go wrong.
Centered text for a statement.
Lead paragraph.{.lead}Inline [highlight]{.hl}A warning.{.warn}
Every theme styles every class, so switching themes needs no edits.
Context is the product; the model is a commodity.
| Metric | Q2 | Q3 | Δ |
|---|---|---|---|
| Weekly users | 84 | 126 | +50% |
| Decks built | 210 | 480 | +129% |
| Avg. slides | 18 | 24 | +33% |
| Build time | 1.9s | 0.4s | −79% |
Tables get theme headers and row rules. {w=46%} and {nowrap} on a header cell size its column and keep it on one line.
from orderswhere status = 'shipped'group by customer_idagg sum(amount) as total, count(*) as norder by total desclimit 10
```wvlet {3-4} dims every line except 3–4. Code renders in the theme’s monospace face; a slide holding only a code block gets a larger font.
# Every highlight.js language worksdef total(orders): return sum(o.amount for o in orders)
const deck = buildDeck('talk.md', { theme: 'wvlet',});
-- SQL, and Wvlet too (wvlet or wv)select customer_id, sum(amount)from ordersgroup by 1
Colors are added at build time, so the HTML and PDF match. Each theme tints them to suit its code panels.
Write a ```mermaid block. Nodes get the theme’s gradient, bold labels, and a soft shadow.
| Role | Syntax |
|---|---|
| primary | B[deck build] |
| accent | D[...]:::accent |
| dark | C[...]:::dark |
| muted | E[...]:::muted |
| light | A[...]:::light |
Any Mermaid diagram works — flowcharts, sequences, states, Gantt charts — colored from the slide’s theme tokens.
deck build draws them ahead of time and inlines the SVG: no network needed to show them```chart block: type:, x:, and series:, or a CSV filehighlight: puts the bar the slide is about in the accent
| Key | Action |
|---|---|
→ Space / ← |
Next / previous slide |
Home End, 12 Enter |
Jump to a slide |
f |
Full screen |
o / Esc |
Overview grid |
t |
Table of contents |
p / P |
Speaker notes and timer / presenter window |
b l |
Black screen, laser pointer |
s |
Share panel |
? |
Shortcut help |
Copy a link to the deck or to the current slide, copy an embed snippet for Google Sites, or print to PDF.
#/12 opens slide 12 — through google.script.history when published on Apps Script.
Everything after === notes stays off the slide. p shows it in a panel with the elapsed time and the clock; P opens a presenter window with the notes and the next slide, which keeps the projector window in step.
# Speaker notes Visible content… === notesOnly the presenter sees this.
Press t to show a contents column at the left of every slide — try it now. Press t again to hide it.
---# show it from the starttoc: sidebar---
The column is part of the slide, so it shows when presenting and prints in PDFs with clickable entries.
lang="ja" が自動で付きますword-break: auto-phrase)が有効になりますJapanese typesetting turns on per slide, only where it’s needed.
Treasure Work: cream paper, gold shine, the gem.
Gem-color gradients, frosted glass, the logo.
Icy light, deep-teal titles, terminal code.
mode: dark in the frontmatter, or {mode=dark} on one slide — like this one.
Typos fail the build with a line number instead of reaching the audience:
$ pnpm deck build talk.mderror: line 42: unknown separator === column (did you mean === col?)error: line 57: unknown image attribute "width" (allowed: w, h, bg, dim, blur, side, at, …)error: line 80: unknown class .fancy (built-in: .lead .small .muted …; define others in theme.css)error: line 91: ratio 1:1:1 has 3 parts but the slide has 2 columns
Need a class of your own? Define it in a theme.css next to the deck — it loads after the theme and extends the allowed classes.
Create your own deck in Treasure Work
work.treasure.ai/docs/decks