The block library
Most videos need no scene code. Name a block on a beat, pass props, and the narration drives the timing. A project can be just storyboard.json: with no index.html, the default composition adds the backdrop, grain, chrome, captions and transitions.
{ "id": "kpis", "block": "kpis",
"vo": "Requests rose to twelve thousand four hundred, and first response fell to four hours.",
"props": { "kicker": "Q3 at a glance",
"items": [ { "label": "Requests", "value": 12400, "delta": "+8%", "say": "requests" },
{ "label": "First response", "value": 4, "suffix": " h", "delta": "−2.1 h", "dir": "down", "good": "down", "say": "first" } ] } }
- See them. Read
docs/media/blocks.jpg (16:9) and docs/media/blocks-vertical.jpg (9:16), a frame of every block. Rebuild them with clearframe gallery.
- Look them up. Run
clearframe blocks (the list), clearframe blocks <name> (props plus an example beat), or read references/blocks.md, which is generated from the code.
- Start from a recipe. Run
clearframe recipes, then clearframe new my-film --recipe quarterly-update, then replace the content.
Pick by intent
| I need to show… |
Block |
Notes |
| the promise / a section opener |
title, chapter |
≤ 8 words; *word* gets the accent |
| one sentence that matters |
statement |
karaoke: words light up as spoken |
| one number |
stat |
style: serif (editorial), counter, odometer |
| 2–4 metrics |
kpis |
delta chips know which direction is good |
| before → after |
delta |
the change % is computed for you |
| a comparison of values |
bars |
focus dims the rest; horizontal automatically on 9:16 |
| a trend over time |
line |
marks, bands, dashed baseline; value rides the tip |
| a share / a probability |
waffle (countable) · ring (one share) · share (a whole split into parts) |
prefer waffle for risk |
| a score with bands |
gauge |
label the zones |
| magnitude (10×+) |
circles |
area ∝ value |
| drop-off through stages |
funnel |
conversion % between steps |
| spread, not average |
distribution |
marker line + highlighted tail |
| activity over months |
calendar |
streak outline; transposes on 9:16 |
| a sequence of events |
timeline |
"now" pulses |
| a process |
steps |
icons optional; current step highlighted |
| how a system works |
flow |
columns, curved edges, packets in motion, focus |
| options side by side |
compare · table |
same criteria on both sides |
| a list that gets done |
checklist |
ticks on the spoken word |
| takeaways |
points |
numbered rows, one per phrase |
| a person's words |
quote |
attribute precisely; fictional names in demos |
| a term |
definition |
before you use jargon |
| the turn of the argument |
question |
wrong question struck, better one rises |
| code |
code |
highlight ranges step through with notes; ≤ 16 lines |
| a conversation |
chat |
typing indicator, auto-scroll |
| a product UI |
browser |
screenshot, HTML or a skeleton mock; spotlight, cursor clicks, zoom |
| a place / texture |
image |
Ken Burns plus scrim; the words carry the meaning |
| who's speaking |
lower-third |
over an image or clip |
| features / pillars |
icons |
3–6 Lucide icons that draw on |
| the ending |
end |
verdict, CTA, source, AI-voice disclosure (auto) |
Sequences that work
Each is a proven arc. Swap blocks, but keep the rhythm.
- Number story:
stat → statement → waffle → question → points → end
- Update:
title → kpis → line (with a mark) → bars (drivers, focus) → timeline (next) → points → end
- Explainer:
stat (hook) → statement (thesis) → definition → flow or steps (mechanism) → question (turn) → end
- Decision:
title (the ask) → delta (cost of inaction) → compare → table → statement (recommendation) → end
- Product:
title → browser (2–3 callouts) → icons (what you get) → checklist (setup) → end
- Research:
title → quote (a voice) → distribution (the data) → ring (the share) → points (recommendations) → end
- Incident:
title → timeline → stat (impact) → flow (cause, focus) → checklist (fixes) → end
- Vertical short (20–30 s):
stat → statement → one chart (circles / waffle / delta) → end. Captions come on automatically.
Rhythm rules
- Alternate dense and spare. Follow every data block with a spare one (
statement, question, title) or a very simple one. Never put three charts in a row.
- Vary the layout. Centred (
stat, title, question), left-aligned (statement, points, line), grid (kpis, icons, compare). Two centred blocks in a row feel like slides.
- One snap per film. A hero number with
style: serif gets the punch; everything else settles.
- Every cue is a spoken word.
say, land, growSay, toSay and the rest must be words in that beat's vo (matched fuzzily, as written). Without cues, items spread evenly across the narration.
- Give payoffs room. Each block has a default
tail (hold after the last word). If clearframe check says animation runs Xs past the beat, raise that beat's tail or land the item earlier.
- Numbers come from sources. Put every figure in
storyboard.sources, or into data.json if you build custom scenes.
Look (top-level storyboard settings)
| Setting |
Values |
Default |
theme |
paper · ink · ember · editorial · slate · signal |
paper |
backdrop |
dots · grid · ruled · topo (contour lines) · aurora (soft light, sparingly) · none |
dots |
grain / vignette |
true / false / grain opacity |
on |
chrome |
'auto' (chapter label, 02 / 05, progress rail when there are ≥ 2 chapters) · true · false |
'auto' |
captions |
'auto' (on for 9:16) · true · false |
'auto' |
transition |
'auto' (rise across chapters, fade within) · fade · rise · push · wipe · blur · zoom · cut |
'auto' |
sfx |
true gives blocks their soft cues (ticks, pops, a chapter whoosh, one chime at the end) |
false |
Per beat, "transition": "cut" (or any kind) overrides the transition into that beat.
Pairings that work:
paper + dots for a calm default.
editorial + topo for research and essays.
slate + ruled for decisions and board memos.
ink + grid for technical and product films.
signal + none for a stark vertical short.
Sound design
Enable it with "sfx": true. The cues are synthesized by ffmpeg, royalty-free, and quiet by design: tick, tock, pop, click, type, whoosh, chime, thud, rise. Blocks use them sparingly: a tick when a counter lands, a pop when a card arrives, a whoosh on a chapter change, a chime on the end card. In custom scenes, call CF.sfx('tick', t, { volume: 0.3 }), or use a project file path. Keep cues at volume ≤ 0.4; the voice must always win. Audition the whole mix in clearframe preview before you deliver.
Icons
There are more than 2,000 Lucide icons (ISC licence). Find names with clearframe icons <words>. Good professional defaults:
- Security and quality:
shield-check, lock, badge-check
- Speed and delivery:
gauge, timer, zap, rocket, truck
- Data and infrastructure:
database, server, network, cloud
- Analytics:
chart-line, chart-bar
- People and communication:
users, user-check, messages-square, mail
- Planning:
calendar-check, list-checks, sliders-horizontal, target
- Documents and money:
file-text, receipt, wallet
Avoid clichés: lightbulb for "ideas", puzzle for "fit", rocket for everything.
Customise, in this order
- Props: most needs stop here.
- Theme and look settings: the whole film changes coherently.
- CSS overrides in your own
index.html (copy engine/runtime/default.html). Target .cf-block-<name>. For example, .cf-block-stat .n { font-size: 400px }.
- Compose blocks inside a custom scene.
await CF.mount('stat', el.querySelector('.left'), { value: 42 }, b) puts two blocks side by side.
- Fork a block. Copy
engine/runtime/blocks/<name>.js to scenes/my-<name>.js, edit it, and point the beat's scene at it. Change import … from './_lib.js' to '/_cf/blocks/_lib.js'.
Adding a block to the library
Create engine/runtime/blocks/<name>.js. It exports:
meta: { tail, summary, use, props, defaults, example: { vo, props } }
css: a string, injected once
html(props, ctx): the initial markup
default async function (ctx)
ctx holds el, b (beat), props, kit, tl, cue(spec, fallback), sound(name, t), format and beat(). Use _lib.js helpers: head, animateHead, finish, itemTime, words, wordTimes, formatter, tone, md, esc.
Rules:
- Size in
calc(Npx * var(--u)).
- Use theme tokens only.
- Every tween goes on
tl with at times from cue, itemTime or b.*.
- Support 9:16 with
:root[data-format='vertical'] CSS or a ctx.format branch.
- Run
clearframe gallery and clearframe gallery --vertical, read both images, and fix what check reports.
- Regenerate the reference with
clearframe blocks --md > skills/clearframe-library/references/blocks.md.
1---2name: clearframe-library-23description: The ClearFrame block library and recipes — 33 ready-made, voice-synced motion-graphics scenes (hero numbers, KPI tiles, charts, unit charts, gauges, funnels, distributions, calendars, timelines, process steps, system diagrams, comparisons, tables, code, chat, product UI walkthroughs, quotes, definitions, titles, end cards) used by naming them in storyboard.json with JSON props — no HTML or code. Use to pick the right graphic for a beat, compose a whole film from blocks, choose look/sound settings, find icons, or extend the library.4metadata:5 source: https://skillmd.com/skills/brandonbryant12/clearframe-library-26---78# The block library910**Most videos need no scene code.** Name a block on a beat, pass props, and the narration drives the timing. A project can be just `storyboard.json`: with no `index.html`, the default composition adds the backdrop, grain, chrome, captions and transitions.1112```jsonc13{ "id": "kpis", "block": "kpis",14 "vo": "Requests rose to twelve thousand four hundred, and first response fell to four hours.",15 "props": { "kicker": "Q3 at a glance",16 "items": [ { "label": "Requests", "value": 12400, "delta": "+8%", "say": "requests" },17 { "label": "First response", "value": 4, "suffix": " h", "delta": "−2.1 h", "dir": "down", "good": "down", "say": "first" } ] } }18```1920- **See them.** Read `docs/media/blocks.jpg` (16:9) and `docs/media/blocks-vertical.jpg` (9:16), a frame of every block. Rebuild them with `clearframe gallery`.21- **Look them up.** Run `clearframe blocks` (the list), `clearframe blocks <name>` (props plus an example beat), or read `references/blocks.md`, which is generated from the code.22- **Start from a recipe.** Run `clearframe recipes`, then `clearframe new my-film --recipe quarterly-update`, then replace the content.2324## Pick by intent2526| I need to show… | Block | Notes |27|---|---|---|28| the promise / a section opener | `title`, `chapter` | ≤ 8 words; `*word*` gets the accent |29| one sentence that matters | `statement` | karaoke: words light up as spoken |30| one number | `stat` | `style: serif` (editorial), `counter`, `odometer` |31| 2–4 metrics | `kpis` | delta chips know which direction is good |32| before → after | `delta` | the change % is computed for you |33| a comparison of values | `bars` | focus dims the rest; horizontal automatically on 9:16 |34| a trend over time | `line` | marks, bands, dashed baseline; value rides the tip |35| a share / a probability | `waffle` (countable) · `ring` (one share) · `share` (a whole split into parts) | prefer `waffle` for risk |36| a score with bands | `gauge` | label the zones |37| magnitude (10×+) | `circles` | area ∝ value |38| drop-off through stages | `funnel` | conversion % between steps |39| spread, not average | `distribution` | marker line + highlighted tail |40| activity over months | `calendar` | streak outline; transposes on 9:16 |41| a sequence of events | `timeline` | "now" pulses |42| a process | `steps` | icons optional; current step highlighted |43| how a system works | `flow` | columns, curved edges, packets in motion, focus |44| options side by side | `compare` · `table` | same criteria on both sides |45| a list that gets done | `checklist` | ticks on the spoken word |46| takeaways | `points` | numbered rows, one per phrase |47| a person's words | `quote` | attribute precisely; fictional names in demos |48| a term | `definition` | before you use jargon |49| the turn of the argument | `question` | wrong question struck, better one rises |50| code | `code` | highlight ranges step through with notes; ≤ 16 lines |51| a conversation | `chat` | typing indicator, auto-scroll |52| a product UI | `browser` | screenshot, HTML or a skeleton mock; spotlight, cursor clicks, zoom |53| a place / texture | `image` | Ken Burns plus scrim; the words carry the meaning |54| who's speaking | `lower-third` | over an image or clip |55| features / pillars | `icons` | 3–6 Lucide icons that draw on |56| the ending | `end` | verdict, CTA, source, AI-voice disclosure (auto) |5758## Sequences that work5960Each is a proven arc. Swap blocks, but keep the rhythm.6162- **Number story:** `stat` → `statement` → `waffle` → `question` → `points` → `end`63- **Update:** `title` → `kpis` → `line` (with a mark) → `bars` (drivers, focus) → `timeline` (next) → `points` → `end`64- **Explainer:** `stat` (hook) → `statement` (thesis) → `definition` → `flow` or `steps` (mechanism) → `question` (turn) → `end`65- **Decision:** `title` (the ask) → `delta` (cost of inaction) → `compare` → `table` → `statement` (recommendation) → `end`66- **Product:** `title` → `browser` (2–3 callouts) → `icons` (what you get) → `checklist` (setup) → `end`67- **Research:** `title` → `quote` (a voice) → `distribution` (the data) → `ring` (the share) → `points` (recommendations) → `end`68- **Incident:** `title` → `timeline` → `stat` (impact) → `flow` (cause, focus) → `checklist` (fixes) → `end`69- **Vertical short (20–30 s):** `stat` → `statement` → one chart (`circles` / `waffle` / `delta`) → `end`. Captions come on automatically.7071## Rhythm rules72731. **Alternate dense and spare.** Follow every data block with a spare one (`statement`, `question`, `title`) or a very simple one. Never put three charts in a row.742. **Vary the layout.** Centred (`stat`, `title`, `question`), left-aligned (`statement`, `points`, `line`), grid (`kpis`, `icons`, `compare`). Two centred blocks in a row feel like slides.753. **One snap per film.** A hero number with `style: serif` gets the punch; everything else settles.764. **Every cue is a spoken word.** `say`, `land`, `growSay`, `toSay` and the rest must be words in that beat's `vo` (matched fuzzily, as written). Without cues, items spread evenly across the narration.775. **Give payoffs room.** Each block has a default `tail` (hold after the last word). If `clearframe check` says `animation runs Xs past the beat`, raise that beat's `tail` or land the item earlier.786. **Numbers come from sources.** Put every figure in `storyboard.sources`, or into `data.json` if you build custom scenes.7980## Look (top-level storyboard settings)8182| Setting | Values | Default |83|---|---|---|84| `theme` | `paper` · `ink` · `ember` · `editorial` · `slate` · `signal` | `paper` |85| `backdrop` | `dots` · `grid` · `ruled` · `topo` (contour lines) · `aurora` (soft light, sparingly) · `none` | `dots` |86| `grain` / `vignette` | `true` / `false` / grain opacity | on |87| `chrome` | `'auto'` (chapter label, `02 / 05`, progress rail when there are ≥ 2 chapters) · `true` · `false` | `'auto'` |88| `captions` | `'auto'` (on for 9:16) · `true` · `false` | `'auto'` |89| `transition` | `'auto'` (rise across chapters, fade within) · `fade` · `rise` · `push` · `wipe` · `blur` · `zoom` · `cut` | `'auto'` |90| `sfx` | `true` gives blocks their soft cues (ticks, pops, a chapter whoosh, one chime at the end) | `false` |9192Per beat, `"transition": "cut"` (or any kind) overrides the transition into that beat.9394Pairings that work:95- `paper` + `dots` for a calm default.96- `editorial` + `topo` for research and essays.97- `slate` + `ruled` for decisions and board memos.98- `ink` + `grid` for technical and product films.99- `signal` + `none` for a stark vertical short.100101## Sound design102103Enable it with `"sfx": true`. The cues are synthesized by ffmpeg, royalty-free, and quiet by design: `tick`, `tock`, `pop`, `click`, `type`, `whoosh`, `chime`, `thud`, `rise`. Blocks use them sparingly: a tick when a counter lands, a pop when a card arrives, a whoosh on a chapter change, a chime on the end card. In custom scenes, call `CF.sfx('tick', t, { volume: 0.3 })`, or use a project file path. Keep cues at volume ≤ 0.4; the voice must always win. Audition the whole mix in `clearframe preview` before you deliver.104105## Icons106107There are more than 2,000 Lucide icons (ISC licence). Find names with `clearframe icons <words>`. Good professional defaults:108- **Security and quality:** `shield-check`, `lock`, `badge-check`109- **Speed and delivery:** `gauge`, `timer`, `zap`, `rocket`, `truck`110- **Data and infrastructure:** `database`, `server`, `network`, `cloud`111- **Analytics:** `chart-line`, `chart-bar`112- **People and communication:** `users`, `user-check`, `messages-square`, `mail`113- **Planning:** `calendar-check`, `list-checks`, `sliders-horizontal`, `target`114- **Documents and money:** `file-text`, `receipt`, `wallet`115116Avoid clichés: `lightbulb` for "ideas", `puzzle` for "fit", `rocket` for everything.117118## Customise, in this order1191201. **Props:** most needs stop here.1212. **Theme and look settings:** the whole film changes coherently.1223. **CSS overrides** in your own `index.html` (copy `engine/runtime/default.html`). Target `.cf-block-<name>`. For example, `.cf-block-stat .n { font-size: 400px }`.1234. **Compose blocks inside a custom scene.** `await CF.mount('stat', el.querySelector('.left'), { value: 42 }, b)` puts two blocks side by side.1245. **Fork a block.** Copy `engine/runtime/blocks/<name>.js` to `scenes/my-<name>.js`, edit it, and point the beat's `scene` at it. Change `import … from './_lib.js'` to `'/_cf/blocks/_lib.js'`.125126## Adding a block to the library127128Create `engine/runtime/blocks/<name>.js`. It exports:129- `meta`: `{ tail, summary, use, props, defaults, example: { vo, props } }`130- `css`: a string, injected once131- `html(props, ctx)`: the initial markup132- `default async function (ctx)`133134`ctx` holds `el`, `b` (beat), `props`, `kit`, `tl`, `cue(spec, fallback)`, `sound(name, t)`, `format` and `beat()`. Use `_lib.js` helpers: `head`, `animateHead`, `finish`, `itemTime`, `words`, `wordTimes`, `formatter`, `tone`, `md`, `esc`.135136Rules:137- Size in `calc(Npx * var(--u))`.138- Use theme tokens only.139- Every tween goes on `tl` with `at` times from `cue`, `itemTime` or `b.*`.140- Support 9:16 with `:root[data-format='vertical']` CSS or a `ctx.format` branch.141- Run `clearframe gallery` and `clearframe gallery --vertical`, read both images, and fix what `check` reports.142- Regenerate the reference with `clearframe blocks --md > skills/clearframe-library/references/blocks.md`.