@anvpx/motion 0.1.47 → 0.1.49

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/CATALOG.md CHANGED
@@ -12,7 +12,7 @@ poster | base | Type-led statement: 1-3 oversized lines with [x] accents, option
12
12
  bullets | base | Short list of 1-6 points with an optional heading. | items
13
13
  stat | base | One hero number with label, unit, delta and context; counts up. | value,label
14
14
  flow | base | Node-and-arrow diagram (2-8 nodes) laid out left-right or top-bottom. | nodes,edges
15
- outro | base | Closing card with title, up to 3 lines and up to 4 credits. | title
15
+ outro | base | Closing card on a deep ground (its own dark gradient, whatever the theme): title, up to 3 lines and up to 4 credits. | title
16
16
  lower-third | overlay | Name plate with optional title at the lower edge. | name
17
17
  bug | overlay | Corner word mark or ledger image; give exactly one of text or image. | -
18
18
  progress | overlay | Thin progress bar over the scene or the whole timeline. | -
@@ -95,7 +95,7 @@ props: {"nodes":[{"id":"a","label":"A"},{"id":"b","label":"B"}],"edges":[{"from"
95
95
  ```
96
96
 
97
97
  ```
98
- outro (base): Closing card with title, up to 3 lines and up to 4 credits.
98
+ outro (base): Closing card on a deep ground (its own dark gradient, whatever the theme): title, up to 3 lines and up to 4 credits.
99
99
  title * text
100
100
  lines text[..3]
101
101
  credits text[..4]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvpx/motion",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "Storyboard JSON to animated video, rendered locally with HyperFrames: the mk CLI plus the full pipeline.",
5
5
  "license": "MIT",
6
6
  "author": "anvpx",
@@ -56,14 +56,14 @@
56
56
  "@fontsource/jetbrains-mono": "5.3.0",
57
57
  "@fontsource/source-serif-4": "5.3.1",
58
58
  "@fontsource/space-grotesk": "5.3.0",
59
- "@anvpx/motion-assets": "0.1.47",
60
- "@anvpx/motion-audio": "0.1.47",
61
- "@anvpx/motion-build": "0.1.47",
62
- "@anvpx/motion-cli": "0.1.47",
63
- "@anvpx/motion-scenes": "0.1.47",
64
- "@anvpx/motion-schema": "0.1.47",
65
- "@anvpx/motion-templates": "0.1.47",
66
- "@anvpx/motion-themes": "0.1.47",
59
+ "@anvpx/motion-assets": "0.1.49",
60
+ "@anvpx/motion-audio": "0.1.49",
61
+ "@anvpx/motion-build": "0.1.49",
62
+ "@anvpx/motion-cli": "0.1.49",
63
+ "@anvpx/motion-scenes": "0.1.49",
64
+ "@anvpx/motion-schema": "0.1.49",
65
+ "@anvpx/motion-templates": "0.1.49",
66
+ "@anvpx/motion-themes": "0.1.49",
67
67
  "hyperframes": "0.8.212",
68
68
  "postprocessing": "6.39.5",
69
69
  "three": "0.186.0",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "description": "Brief-to-approved video via the pinned motion-kit CLI: storyboard, preview, gated render.",
3
3
  "name": "motion-kit",
4
- "version": "0.1.47"
4
+ "version": "0.1.49"
5
5
  }
@@ -2,14 +2,14 @@
2
2
 
3
3
  Plugin root: `plugins/motion-kit/` (chosen over a top-level `motion-kit-plugin/`
4
4
  folder name used by the plugin packaging convention;
5
- `npx -y @anvpx/motion@0.1.47 plugin install` copies this exact folder).
5
+ `npx -y @anvpx/motion@0.1.49 plugin install` copies this exact folder).
6
6
 
7
7
  ## Layout
8
8
 
9
9
  - `.claude-plugin/plugin.json` — manifest (`name`, `version`, `description` only;
10
10
  version tracks `@anvpx/motion`).
11
11
  - `commands/mk-new.md`, `mk-draft.md`, `mk-render.md` — thin wrappers. Every step
12
- calls `npx -y @anvpx/motion@0.1.47` (pinned; never unpinned `npx`).
12
+ calls `npx -y @anvpx/motion@0.1.49` (pinned; never unpinned `npx`).
13
13
  Surface as `/motion-kit:mk-new`, `/motion-kit:mk-draft`, `/motion-kit:mk-render`.
14
14
  - `skills/motion-kit/SKILL.md` — generated from the canonical skill by the
15
15
  scaffold; do not edit it here.
@@ -26,7 +26,7 @@ generates the core package's `skills/` and `plugins/` trees.
26
26
  ## Install
27
27
 
28
28
  ```bash
29
- npx -y @anvpx/motion@0.1.47 plugin install --out ./motion-kit-plugin
29
+ npx -y @anvpx/motion@0.1.49 plugin install --out ./motion-kit-plugin
30
30
  ```
31
31
 
32
32
  Verifies `skills/motion-kit/SKILL.md` sha256 matches after copy.
@@ -5,8 +5,8 @@ description: Preview a motion-kit storyboard (stills, contact sheet, draft clip)
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.47 preview storyboard.json
9
- npx -y @anvpx/motion@0.1.47 approve storyboard.json --note "<user words>"
8
+ npx -y @anvpx/motion@0.1.49 preview storyboard.json
9
+ npx -y @anvpx/motion@0.1.49 approve storyboard.json --note "<user words>"
10
10
  ```
11
11
 
12
12
  Follow `skills/motion-kit/SKILL.md` stages 7-8 (preview, show + approve).
@@ -5,10 +5,10 @@ description: Start a motion-kit video (intake, brief, template pick, storyboard)
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.47 template list --for "<one-line brief>"
9
- npx -y @anvpx/motion@0.1.47 template show <template>/<blueprint>
10
- npx -y @anvpx/motion@0.1.47 new <template>/<blueprint> --set k=v ... --out storyboard.json
11
- npx -y @anvpx/motion@0.1.47 validate storyboard.json
8
+ npx -y @anvpx/motion@0.1.49 template list --for "<one-line brief>"
9
+ npx -y @anvpx/motion@0.1.49 template show <template>/<blueprint>
10
+ npx -y @anvpx/motion@0.1.49 new <template>/<blueprint> --set k=v ... --out storyboard.json
11
+ npx -y @anvpx/motion@0.1.49 validate storyboard.json
12
12
  ```
13
13
 
14
14
  Follow `skills/motion-kit/SKILL.md` stages 1-6 (intake, brief, pick template,
@@ -5,8 +5,8 @@ description: Gated render of an approved motion-kit storyboard with verify
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.47 render storyboard.json --gated --verify
9
- npx -y @anvpx/motion@0.1.47 verify out/final.mp4 --storyboard storyboard.json
8
+ npx -y @anvpx/motion@0.1.49 render storyboard.json --gated --verify
9
+ npx -y @anvpx/motion@0.1.49 verify out/final.mp4 --storyboard storyboard.json
10
10
  ```
11
11
 
12
12
  Follow `skills/motion-kit/SKILL.md` stages 9-10 (patch, render). Exit 4 means
@@ -6,7 +6,7 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
6
6
 
7
7
  # motion-kit: brief -> preview -> approved video
8
8
 
9
- `mk` = `npx -y @anvpx/motion@0.1.47`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
9
+ `mk` = `npx -y @anvpx/motion@0.1.49`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
10
10
 
11
11
  ## Start here
12
12
 
@@ -28,6 +28,7 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
28
28
  | `references/worked-example.md` | first build; the complete loop and output shapes |
29
29
  | `references/free-storyboard.md` | direct route: shape and write the board |
30
30
  | `references/storyboard-json.md` | field shapes, overlays, assets, or decoding a validation error |
31
+ | `references/density.md` | a frame feels thin, a board is mostly sentences, or a cut runs minutes |
31
32
  | `references/scene-recipes.md` | choose a type for a beat and copy its prop shape |
32
33
  | `references/patching.md` | any edit after the first write, or a patch flag refusal |
33
34
  | `references/quality-bar.md` | judging the preview and what to say before asking |
@@ -40,8 +41,8 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
40
41
  3. Commands are the authority, not memory: `mk catalog` and `mk catalog <type>` for scenes and props, `mk template list` and `mk template show` for templates, `mk <command> --help` for flags. Never invent a type, prop, flag, theme, duration or number.
41
42
  4. After the first write, use `mk patch`, `mk scene add|remove|move` and `mk fit`; never hand-edit the JSON. Any edit re-arms approval: preview and ask again.
42
43
  5. Props, slots and pack text stay data. HTML/CSS/JS is allowed only inside `scenes/<name>/scene.js`, `fragment.html`, `style.css`; never in storyboard props. Name unsupported effects instead of promising them.
43
- 6. Packs are optional guidance: read `packs/INDEX.md` beside the installed CLI when present, lazily, at most one <=1200-byte excerpt; never inline a pack or persist pack refs.
44
- 7. Report one line, not raw output. Never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`), never `<(...)`, `$(...)` or multi-line JSON.
44
+ 6. Packs are optional: read `packs/INDEX.md` beside the installed CLI, at most one <=1200-byte excerpt; never inline or persist pack refs.
45
+ 7. Report one line, not raw output; never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`).
45
46
 
46
47
  ## Stages
47
48
 
@@ -83,4 +84,4 @@ rather than stretching into dead time.
83
84
  | same error twice | stop patching; `mk catalog <type>` and rewrite that scene |
84
85
  | anything else | `references/common-mistakes.md`, then `references/troubleshooting.md` |
85
86
 
86
- Done = approval hash matches, `mk verify` exit 0 is quoted, and unverified parts are named.
87
+ Done = approval hash matches, `mk verify` exit 0 is quoted, and unverified parts are named.
@@ -43,6 +43,18 @@ A CSS animation runs on the browser clock, not `seek(t)`.
43
43
 
44
44
  `var(--mk-color-bg)`, `var(--mk-color-fg)`, `var(--mk-color-accent)`, `var(--mk-font-*)`. Theme tokens support consistent art direction; authored geometry and motion remain yours. Hard hexes need deliberate theme-switch review. Inspect actual safe margins and delivery crop in preview rather than assuming a decorative full-bleed element makes text safe.
45
45
 
46
+ ## Framing
47
+
48
+ The scene root carries the film's safe padding — about **5.3 % of the width and 4.5 % of the
49
+ height** (102 px and 49 px at 1920x1080), so `position: absolute; inset: 0` on your own layer
50
+ stops short of the frame edge. Measured, not guessable. Two answers, both supported:
51
+
52
+ - **Design inside the box.** A plate with a margin is a composition, not a defect; most
53
+ botanical and editorial layouts want the margin.
54
+ - **Bleed on purpose.** Put the full-bleed art in an inner wrapper with a negative inset
55
+ (`position: absolute; inset: -4.5% -5.3%`) and keep type inside the box. The padding is a
56
+ percentage, so check 4k as well as 1080p in preview.
57
+
46
58
  ## Loop
47
59
 
48
60
  `mk scene new` → edit → `mk scene lint` → `mk validate` → `mk preview` → ask. Promotion to a catalog type is optional and only after demonstrated reuse; it is not a condition for shipping an authored scene.
@@ -54,7 +54,7 @@ These are the failures that waste the most time. Each row is wrong -> right -> w
54
54
  | `mk assets import logo.png --dir assets` | Add `--licence MIT --source-url <url>` | Every imported asset needs provenance |
55
55
  | `mk voice` on a machine with no venv | `mk doctor`; install Python 3.12 + the voice extras, or ship silent | Voice is opt-in and fails closed |
56
56
  | `mk patch` path into a missing parent | Add the parent first, or target an existing path | Patch stops at the first op that cannot apply |
57
- | `npx -y @anvpx/motion@0.1.47` returns 404 | stop; verify the exact release on npm, or use a local checkout/tarball only if the user has one | do not silently fall back to an unpinned npx |
57
+ | `npx -y @anvpx/motion@0.1.49` returns 404 | stop; verify the exact release on npm, or use a local checkout/tarball only if the user has one | do not silently fall back to an unpinned npx |
58
58
 
59
59
  ## Windows
60
60
 
@@ -0,0 +1,95 @@
1
+ # Density: what a beat owes the viewer
2
+
3
+ Load when a frame feels thin, when a board is mostly sentences, or when a long cut has to
4
+ hold attention for minutes rather than seconds.
5
+
6
+ A **mark** is one labelled thing on screen: a title, a label with a leader, a table cell, a
7
+ step, a counted row, a state on a strip. Words are not marks. "It grows in the dark" is one
8
+ mark however long the sentence; a cross-section with seven leaders is seven.
9
+
10
+ Measured on a five-minute orchid segment: the first cut carried one drawing and four cards
11
+ and was reviewed as _"always one or two elements, not much, not care about the quality of
12
+ content"_. The rebuild held 8-12 marks a beat and the complaint disappeared.
13
+
14
+ ## Budget
15
+
16
+ `mk validate` enforces the checkable half of this table (`content-density`); the rest is
17
+ judgement.
18
+
19
+ | beat | floor | what the extra marks are |
20
+ | --------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------- |
21
+ | `title`, `poster`, `outro` | 2 | a headline plus its kicker, foot or second line |
22
+ | `bullets`, `steps`, `flow`, `timeline`, `icon-grid` | 3 | one point is a sentence, three is an argument |
23
+ | `table` | 4 | two columns by two rows, or one by four |
24
+ | `compare` | 5 | two labels and at least two observable points total — one point a side is a slogan |
25
+ | `custom` plate | 6 | declare `props.elements`; a drawn frame under eight marks is a diagram of an idea, not evidence |
26
+ | long form (>= 180 s) | mean 6 | every beat above, not one hero beat carrying the rest |
27
+
28
+ Slider, cycle, gauge, clock, phase or any frame that shows a process: these need their axis,
29
+ their labels and their annotation, or the viewer sees a shape and learns nothing.
30
+
31
+ ## Three jobs per beat
32
+
33
+ A beat that only restates the previous one is a title card with extra steps. Give it:
34
+
35
+ 1. **a claim** — the one sentence it exists for;
36
+ 2. **evidence** — the thing the viewer can _see_, which is where the marks live;
37
+ 3. **an annotation** — the label, count, bracket or legend that turns the picture into a
38
+ statement (this is the mark most often missing, and the one reviewers notice).
39
+
40
+ If you cannot name the evidence, the beat has no picture: cut it or fold it into its
41
+ neighbour. If you cannot name the annotation, the viewer has to take your word for it.
42
+
43
+ ## Recipes that generalise
44
+
45
+ Each recipe is a way to turn a sentence into marks. They are subject-agnostic: a root
46
+ cross-section, a bus route and a battery cell use the same five.
47
+
48
+ - **Cross-section** — cut the subject open, label the layers with leaders, and put one
49
+ measured strip under it (before/after, wet/dry, cold/hot). Marks: 5-8 leaders + 1 strip.
50
+ - **Dial / cycle** — a circle with ticks, two contrasted arcs, a hand that moves, and the
51
+ state named at the centre. Marks: 4-6 + the axis labels. Use when the claim is "at a
52
+ different time".
53
+ - **Mechanism strip** — two states of the same object side by side, an arrow between them,
54
+ and the consequence labelled. Marks: 4-6. Use when the claim is "this causes that".
55
+ - **Counted legend** — the inventory of the subject (3 of these, 1 of that). Marks: one per
56
+ row. It is the cheapest way to make a picture quantitative without inventing numbers.
57
+ - **Mapping diagram** — two things that stand for each other (flower and bee, model and
58
+ system), with the mapping labelled in both directions. Marks: 5-7, and it is the only
59
+ recipe that can carry a deception, an analogy or a false friend honestly.
60
+
61
+ ## Composition, absorbed
62
+
63
+ From the composition card, as a checklist:
64
+
65
+ - name what the viewer must see first; give it scale, value, isolation **or** placement —
66
+ not all four;
67
+ - carry the same anchors across beats so change becomes legible, and spend one exception;
68
+ - use depth as information (near/subject/far never share a value), never as decoration;
69
+ - test the busiest and the emptiest beat with the same anchors before you build the rest.
70
+
71
+ ## Narrative, absorbed
72
+
73
+ From the narrative card:
74
+
75
+ - write the change in one sentence: _the viewer first sees X; after Y, they understand Z_;
76
+ - one job per beat (pose, orient, demonstrate, complicate, compare, resolve) — a beat that
77
+ repeats a job without new evidence is deleted, not shortened;
78
+ - change scale because the question changes: wide to establish, close to inspect, detail to
79
+ decide; keep one recognisable object across the cut;
80
+ - pace the meaning, not the count: dense evidence may need a held frame.
81
+
82
+ ## Slop to refuse
83
+
84
+ Particle bursts, glows, gradients on chrome, icon strokes from two families, unchosen dead
85
+ time, crowded lines, stock-photo hands, a statistic with no source, a second hero moment.
86
+ None of these is banned forever; each must be chosen and named. The fix order when a frame
87
+ looks wrong: value and contrast, then scale and spacing, then weight, then colour, then motion.
88
+
89
+ ## Before preview
90
+
91
+ 1. Count the marks in the busiest frame. Under eight on a drawn plate: add evidence.
92
+ 2. Every claim has something observable beside it, not a caption under it.
93
+ 3. Every count, axis or threshold has a source or says it is illustrative.
94
+ 4. The busiest and emptiest beats share anchors, type roles and value range.
95
+ 5. Read the film muted: each beat should still change what the viewer knows.
@@ -2,9 +2,19 @@
2
2
 
3
3
  ## Themes
4
4
 
5
- The package ships 18 DTCG themes, light and dark: `bold`, `calm`, `data`, `editorial`, `fjord`, `playful`, `pop`, `tech`, `warm`.
5
+ Two families. They are not the same thing and neither list substitutes for the other.
6
6
 
7
- `mk new` vendors the theme its blueprint uses under `themes/`. To use another, copy `<installed package>/shared/themes/<name>.json` (and its pair, for paired stills) into `themes/` beside the storyboard, then set `meta.theme` with `mk patch`. There is no `mk theme list`; this is the list.
7
+ **Built in** — accepted by `meta.theme` with no file in the project, resolved from the installed
8
+ package's own token files (`@anvpx/motion-themes/dist/tokens/*.json`): `default` (light, paper
9
+ white), `dark`, `paper` (cream ground, ink text, one brick accent — a drawn/editorial look
10
+ instead of a lit one), `tech-dark`, `calm-dark`. They are never copied into `themes/` and are
11
+ not listed under `shared/themes/`.
12
+
13
+ **Vendored** — 18 DTCG files, light and dark: `bold`, `calm`, `data`, `editorial`, `fjord`,
14
+ `playful`, `pop`, `tech`, `warm`. `mk new` copies the one its blueprint uses into `themes/`.
15
+ To use another, copy `<installed package>/shared/themes/<name>.json` (and its pair, for paired
16
+ stills) into `themes/` beside the storyboard, then set `meta.theme` with `mk patch`. There is
17
+ no `mk theme list`; this is the list.
8
18
 
9
19
  For luxury or editorial work, `editorial-*` (serif, ink) and `warm-*` (cream, terracotta) read quieter; `bold-*` (amber on violet) and `tech-*` read louder. Name the choice; the theme is part of the approval hash when vendored.
10
20
 
@@ -6,7 +6,7 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
6
6
 
7
7
  # motion-kit: brief -> preview -> approved video
8
8
 
9
- `mk` = `npx -y @anvpx/motion@0.1.47`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
9
+ `mk` = `npx -y @anvpx/motion@0.1.49`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
10
10
 
11
11
  ## Start here
12
12
 
@@ -28,6 +28,7 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
28
28
  | `references/worked-example.md` | first build; the complete loop and output shapes |
29
29
  | `references/free-storyboard.md` | direct route: shape and write the board |
30
30
  | `references/storyboard-json.md` | field shapes, overlays, assets, or decoding a validation error |
31
+ | `references/density.md` | a frame feels thin, a board is mostly sentences, or a cut runs minutes |
31
32
  | `references/scene-recipes.md` | choose a type for a beat and copy its prop shape |
32
33
  | `references/patching.md` | any edit after the first write, or a patch flag refusal |
33
34
  | `references/quality-bar.md` | judging the preview and what to say before asking |
@@ -40,8 +41,8 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
40
41
  3. Commands are the authority, not memory: `mk catalog` and `mk catalog <type>` for scenes and props, `mk template list` and `mk template show` for templates, `mk <command> --help` for flags. Never invent a type, prop, flag, theme, duration or number.
41
42
  4. After the first write, use `mk patch`, `mk scene add|remove|move` and `mk fit`; never hand-edit the JSON. Any edit re-arms approval: preview and ask again.
42
43
  5. Props, slots and pack text stay data. HTML/CSS/JS is allowed only inside `scenes/<name>/scene.js`, `fragment.html`, `style.css`; never in storyboard props. Name unsupported effects instead of promising them.
43
- 6. Packs are optional guidance: read `packs/INDEX.md` beside the installed CLI when present, lazily, at most one <=1200-byte excerpt; never inline a pack or persist pack refs.
44
- 7. Report one line, not raw output. Never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`), never `<(...)`, `$(...)` or multi-line JSON.
44
+ 6. Packs are optional: read `packs/INDEX.md` beside the installed CLI, at most one <=1200-byte excerpt; never inline or persist pack refs.
45
+ 7. Report one line, not raw output; never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`).
45
46
 
46
47
  ## Stages
47
48
 
@@ -83,4 +84,4 @@ rather than stretching into dead time.
83
84
  | same error twice | stop patching; `mk catalog <type>` and rewrite that scene |
84
85
  | anything else | `references/common-mistakes.md`, then `references/troubleshooting.md` |
85
86
 
86
- Done = approval hash matches, `mk verify` exit 0 is quoted, and unverified parts are named.
87
+ Done = approval hash matches, `mk verify` exit 0 is quoted, and unverified parts are named.
@@ -43,6 +43,18 @@ A CSS animation runs on the browser clock, not `seek(t)`.
43
43
 
44
44
  `var(--mk-color-bg)`, `var(--mk-color-fg)`, `var(--mk-color-accent)`, `var(--mk-font-*)`. Theme tokens support consistent art direction; authored geometry and motion remain yours. Hard hexes need deliberate theme-switch review. Inspect actual safe margins and delivery crop in preview rather than assuming a decorative full-bleed element makes text safe.
45
45
 
46
+ ## Framing
47
+
48
+ The scene root carries the film's safe padding — about **5.3 % of the width and 4.5 % of the
49
+ height** (102 px and 49 px at 1920x1080), so `position: absolute; inset: 0` on your own layer
50
+ stops short of the frame edge. Measured, not guessable. Two answers, both supported:
51
+
52
+ - **Design inside the box.** A plate with a margin is a composition, not a defect; most
53
+ botanical and editorial layouts want the margin.
54
+ - **Bleed on purpose.** Put the full-bleed art in an inner wrapper with a negative inset
55
+ (`position: absolute; inset: -4.5% -5.3%`) and keep type inside the box. The padding is a
56
+ percentage, so check 4k as well as 1080p in preview.
57
+
46
58
  ## Loop
47
59
 
48
60
  `mk scene new` → edit → `mk scene lint` → `mk validate` → `mk preview` → ask. Promotion to a catalog type is optional and only after demonstrated reuse; it is not a condition for shipping an authored scene.
@@ -54,7 +54,7 @@ These are the failures that waste the most time. Each row is wrong -> right -> w
54
54
  | `mk assets import logo.png --dir assets` | Add `--licence MIT --source-url <url>` | Every imported asset needs provenance |
55
55
  | `mk voice` on a machine with no venv | `mk doctor`; install Python 3.12 + the voice extras, or ship silent | Voice is opt-in and fails closed |
56
56
  | `mk patch` path into a missing parent | Add the parent first, or target an existing path | Patch stops at the first op that cannot apply |
57
- | `npx -y @anvpx/motion@0.1.47` returns 404 | stop; verify the exact release on npm, or use a local checkout/tarball only if the user has one | do not silently fall back to an unpinned npx |
57
+ | `npx -y @anvpx/motion@0.1.49` returns 404 | stop; verify the exact release on npm, or use a local checkout/tarball only if the user has one | do not silently fall back to an unpinned npx |
58
58
 
59
59
  ## Windows
60
60
 
@@ -0,0 +1,95 @@
1
+ # Density: what a beat owes the viewer
2
+
3
+ Load when a frame feels thin, when a board is mostly sentences, or when a long cut has to
4
+ hold attention for minutes rather than seconds.
5
+
6
+ A **mark** is one labelled thing on screen: a title, a label with a leader, a table cell, a
7
+ step, a counted row, a state on a strip. Words are not marks. "It grows in the dark" is one
8
+ mark however long the sentence; a cross-section with seven leaders is seven.
9
+
10
+ Measured on a five-minute orchid segment: the first cut carried one drawing and four cards
11
+ and was reviewed as _"always one or two elements, not much, not care about the quality of
12
+ content"_. The rebuild held 8-12 marks a beat and the complaint disappeared.
13
+
14
+ ## Budget
15
+
16
+ `mk validate` enforces the checkable half of this table (`content-density`); the rest is
17
+ judgement.
18
+
19
+ | beat | floor | what the extra marks are |
20
+ | --------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------- |
21
+ | `title`, `poster`, `outro` | 2 | a headline plus its kicker, foot or second line |
22
+ | `bullets`, `steps`, `flow`, `timeline`, `icon-grid` | 3 | one point is a sentence, three is an argument |
23
+ | `table` | 4 | two columns by two rows, or one by four |
24
+ | `compare` | 5 | two labels and at least two observable points total — one point a side is a slogan |
25
+ | `custom` plate | 6 | declare `props.elements`; a drawn frame under eight marks is a diagram of an idea, not evidence |
26
+ | long form (>= 180 s) | mean 6 | every beat above, not one hero beat carrying the rest |
27
+
28
+ Slider, cycle, gauge, clock, phase or any frame that shows a process: these need their axis,
29
+ their labels and their annotation, or the viewer sees a shape and learns nothing.
30
+
31
+ ## Three jobs per beat
32
+
33
+ A beat that only restates the previous one is a title card with extra steps. Give it:
34
+
35
+ 1. **a claim** — the one sentence it exists for;
36
+ 2. **evidence** — the thing the viewer can _see_, which is where the marks live;
37
+ 3. **an annotation** — the label, count, bracket or legend that turns the picture into a
38
+ statement (this is the mark most often missing, and the one reviewers notice).
39
+
40
+ If you cannot name the evidence, the beat has no picture: cut it or fold it into its
41
+ neighbour. If you cannot name the annotation, the viewer has to take your word for it.
42
+
43
+ ## Recipes that generalise
44
+
45
+ Each recipe is a way to turn a sentence into marks. They are subject-agnostic: a root
46
+ cross-section, a bus route and a battery cell use the same five.
47
+
48
+ - **Cross-section** — cut the subject open, label the layers with leaders, and put one
49
+ measured strip under it (before/after, wet/dry, cold/hot). Marks: 5-8 leaders + 1 strip.
50
+ - **Dial / cycle** — a circle with ticks, two contrasted arcs, a hand that moves, and the
51
+ state named at the centre. Marks: 4-6 + the axis labels. Use when the claim is "at a
52
+ different time".
53
+ - **Mechanism strip** — two states of the same object side by side, an arrow between them,
54
+ and the consequence labelled. Marks: 4-6. Use when the claim is "this causes that".
55
+ - **Counted legend** — the inventory of the subject (3 of these, 1 of that). Marks: one per
56
+ row. It is the cheapest way to make a picture quantitative without inventing numbers.
57
+ - **Mapping diagram** — two things that stand for each other (flower and bee, model and
58
+ system), with the mapping labelled in both directions. Marks: 5-7, and it is the only
59
+ recipe that can carry a deception, an analogy or a false friend honestly.
60
+
61
+ ## Composition, absorbed
62
+
63
+ From the composition card, as a checklist:
64
+
65
+ - name what the viewer must see first; give it scale, value, isolation **or** placement —
66
+ not all four;
67
+ - carry the same anchors across beats so change becomes legible, and spend one exception;
68
+ - use depth as information (near/subject/far never share a value), never as decoration;
69
+ - test the busiest and the emptiest beat with the same anchors before you build the rest.
70
+
71
+ ## Narrative, absorbed
72
+
73
+ From the narrative card:
74
+
75
+ - write the change in one sentence: _the viewer first sees X; after Y, they understand Z_;
76
+ - one job per beat (pose, orient, demonstrate, complicate, compare, resolve) — a beat that
77
+ repeats a job without new evidence is deleted, not shortened;
78
+ - change scale because the question changes: wide to establish, close to inspect, detail to
79
+ decide; keep one recognisable object across the cut;
80
+ - pace the meaning, not the count: dense evidence may need a held frame.
81
+
82
+ ## Slop to refuse
83
+
84
+ Particle bursts, glows, gradients on chrome, icon strokes from two families, unchosen dead
85
+ time, crowded lines, stock-photo hands, a statistic with no source, a second hero moment.
86
+ None of these is banned forever; each must be chosen and named. The fix order when a frame
87
+ looks wrong: value and contrast, then scale and spacing, then weight, then colour, then motion.
88
+
89
+ ## Before preview
90
+
91
+ 1. Count the marks in the busiest frame. Under eight on a drawn plate: add evidence.
92
+ 2. Every claim has something observable beside it, not a caption under it.
93
+ 3. Every count, axis or threshold has a source or says it is illustrative.
94
+ 4. The busiest and emptiest beats share anchors, type roles and value range.
95
+ 5. Read the film muted: each beat should still change what the viewer knows.
@@ -2,9 +2,19 @@
2
2
 
3
3
  ## Themes
4
4
 
5
- The package ships 18 DTCG themes, light and dark: `bold`, `calm`, `data`, `editorial`, `fjord`, `playful`, `pop`, `tech`, `warm`.
5
+ Two families. They are not the same thing and neither list substitutes for the other.
6
6
 
7
- `mk new` vendors the theme its blueprint uses under `themes/`. To use another, copy `<installed package>/shared/themes/<name>.json` (and its pair, for paired stills) into `themes/` beside the storyboard, then set `meta.theme` with `mk patch`. There is no `mk theme list`; this is the list.
7
+ **Built in** — accepted by `meta.theme` with no file in the project, resolved from the installed
8
+ package's own token files (`@anvpx/motion-themes/dist/tokens/*.json`): `default` (light, paper
9
+ white), `dark`, `paper` (cream ground, ink text, one brick accent — a drawn/editorial look
10
+ instead of a lit one), `tech-dark`, `calm-dark`. They are never copied into `themes/` and are
11
+ not listed under `shared/themes/`.
12
+
13
+ **Vendored** — 18 DTCG files, light and dark: `bold`, `calm`, `data`, `editorial`, `fjord`,
14
+ `playful`, `pop`, `tech`, `warm`. `mk new` copies the one its blueprint uses into `themes/`.
15
+ To use another, copy `<installed package>/shared/themes/<name>.json` (and its pair, for paired
16
+ stills) into `themes/` beside the storyboard, then set `meta.theme` with `mk patch`. There is
17
+ no `mk theme list`; this is the list.
8
18
 
9
19
  For luxury or editorial work, `editorial-*` (serif, ink) and `warm-*` (cream, terracotta) read quieter; `bold-*` (amber on violet) and `tech-*` read louder. Name the choice; the theme is part of the approval hash when vendored.
10
20