hyperframes 0.6.97 → 0.6.98
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/beat-analyzer.global.js +326 -0
- package/dist/cli.js +2479 -1961
- package/dist/commands/layout-audit.browser.js +86 -0
- package/dist/hyperframe-runtime.js +22 -22
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +22 -22
- package/dist/skills/hyperframes-cli/SKILL.md +67 -103
- package/dist/skills/hyperframes-cli/references/doctor-browser.md +45 -0
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +51 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +132 -0
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +93 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +107 -0
- package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +75 -0
- package/dist/studio/assets/hyperframes-player-DgsMQSvV.js +418 -0
- package/dist/studio/assets/index-B62bDCQv.css +1 -0
- package/dist/studio/assets/index-Ce3pBm_I.js +252 -0
- package/dist/studio/assets/{index-HveJ0MuV.js → index-D-ET9M0b.js} +1 -1
- package/dist/studio/assets/index-D-bS9Dxx.js +1 -0
- package/dist/studio/index.html +2 -2
- package/dist/templates/_shared/AGENTS.md +46 -21
- package/dist/templates/_shared/CLAUDE.md +16 -14
- package/package.json +3 -2
- package/dist/pngDecodeBlitWorker.js +0 -239
- package/dist/skills/gsap/SKILL.md +0 -240
- package/dist/skills/gsap/references/effects.md +0 -297
- package/dist/skills/gsap/scripts/extract-audio-data.py +0 -188
- package/dist/skills/hyperframes/SKILL.md +0 -491
- package/dist/skills/hyperframes/data-in-motion.md +0 -19
- package/dist/skills/hyperframes/house-style.md +0 -73
- package/dist/skills/hyperframes/palettes/bold-energetic.md +0 -14
- package/dist/skills/hyperframes/palettes/clean-corporate.md +0 -14
- package/dist/skills/hyperframes/palettes/dark-premium.md +0 -14
- package/dist/skills/hyperframes/palettes/jewel-rich.md +0 -14
- package/dist/skills/hyperframes/palettes/monochrome.md +0 -14
- package/dist/skills/hyperframes/palettes/nature-earth.md +0 -14
- package/dist/skills/hyperframes/palettes/neon-electric.md +0 -14
- package/dist/skills/hyperframes/palettes/pastel-soft.md +0 -14
- package/dist/skills/hyperframes/palettes/warm-editorial.md +0 -14
- package/dist/skills/hyperframes/patterns.md +0 -191
- package/dist/skills/hyperframes/references/audio-reactive.md +0 -76
- package/dist/skills/hyperframes/references/beat-direction.md +0 -171
- package/dist/skills/hyperframes/references/captions.md +0 -163
- package/dist/skills/hyperframes/references/css-patterns.md +0 -373
- package/dist/skills/hyperframes/references/design-picker.md +0 -117
- package/dist/skills/hyperframes/references/dynamic-techniques.md +0 -102
- package/dist/skills/hyperframes/references/html-in-canvas-patterns.md +0 -507
- package/dist/skills/hyperframes/references/motion-principles.md +0 -150
- package/dist/skills/hyperframes/references/narration.md +0 -92
- package/dist/skills/hyperframes/references/prompt-expansion.md +0 -68
- package/dist/skills/hyperframes/references/techniques.md +0 -525
- package/dist/skills/hyperframes/references/text-effects.md +0 -64
- package/dist/skills/hyperframes/references/transcript-guide.md +0 -107
- package/dist/skills/hyperframes/references/transitions/catalog.md +0 -117
- package/dist/skills/hyperframes/references/transitions/css-3d.md +0 -12
- package/dist/skills/hyperframes/references/transitions/css-blur.md +0 -51
- package/dist/skills/hyperframes/references/transitions/css-cover.md +0 -43
- package/dist/skills/hyperframes/references/transitions/css-destruction.md +0 -95
- package/dist/skills/hyperframes/references/transitions/css-dissolve.md +0 -66
- package/dist/skills/hyperframes/references/transitions/css-distortion.md +0 -45
- package/dist/skills/hyperframes/references/transitions/css-grid.md +0 -10
- package/dist/skills/hyperframes/references/transitions/css-light.md +0 -49
- package/dist/skills/hyperframes/references/transitions/css-mechanical.md +0 -30
- package/dist/skills/hyperframes/references/transitions/css-other.md +0 -25
- package/dist/skills/hyperframes/references/transitions/css-push.md +0 -41
- package/dist/skills/hyperframes/references/transitions/css-radial.md +0 -37
- package/dist/skills/hyperframes/references/transitions/css-scale.md +0 -24
- package/dist/skills/hyperframes/references/transitions.md +0 -138
- package/dist/skills/hyperframes/references/typography.md +0 -175
- package/dist/skills/hyperframes/references/video-composition.md +0 -62
- package/dist/skills/hyperframes/scripts/animation-map.mjs +0 -601
- package/dist/skills/hyperframes/scripts/contrast-report.mjs +0 -348
- package/dist/skills/hyperframes/scripts/package-loader.mjs +0 -269
- package/dist/skills/hyperframes/templates/design-picker.html +0 -1432
- package/dist/skills/hyperframes/visual-styles.md +0 -443
- package/dist/studio/assets/hyperframes-player-Daj5djxa.js +0 -418
- package/dist/studio/assets/index-B0twsRu0.css +0 -1
- package/dist/studio/assets/index-Cfye9xzo.js +0 -251
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
# Captions
|
|
2
|
-
|
|
3
|
-
## Language Rule (Non-Negotiable)
|
|
4
|
-
|
|
5
|
-
**Never use `.en` models unless the user explicitly states the audio is English.** `.en` models TRANSLATE non-English audio into English instead of transcribing it.
|
|
6
|
-
|
|
7
|
-
1. User says the language → `--model small --language <code>` (no `.en`)
|
|
8
|
-
2. User says English → `--model small.en`
|
|
9
|
-
3. Language unknown → `--model small` (no `.en`, no `--language`) — auto-detects
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
Analyze spoken content to determine caption style. If user specifies a style, use that. Otherwise, detect tone from the transcript.
|
|
14
|
-
|
|
15
|
-
## Transcript Source
|
|
16
|
-
|
|
17
|
-
```json
|
|
18
|
-
[
|
|
19
|
-
{ "text": "Hello", "start": 0.0, "end": 0.5 },
|
|
20
|
-
{ "text": "world.", "start": 0.6, "end": 1.2 }
|
|
21
|
-
]
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
For transcription commands, whisper models, external APIs, see [transcript-guide.md](transcript-guide.md).
|
|
25
|
-
|
|
26
|
-
## Style Detection (When No Style Specified)
|
|
27
|
-
|
|
28
|
-
Read the full transcript before choosing. Four dimensions:
|
|
29
|
-
|
|
30
|
-
**1. Visual feel** — corporate→clean; energetic→bold; storytelling→elegant; technical→precise; social→playful.
|
|
31
|
-
|
|
32
|
-
**2. Color palette** — dark+bright for energy; muted for professional; high contrast for clarity; one accent color.
|
|
33
|
-
|
|
34
|
-
**3. Font mood** — heavy/condensed for impact; clean sans for modern; rounded for friendly; serif for elegance.
|
|
35
|
-
|
|
36
|
-
**4. Animation character** — scale-pop for punchy; gentle fade for calm; word-by-word for emphasis; typewriter for technical.
|
|
37
|
-
|
|
38
|
-
## Per-Word Styling
|
|
39
|
-
|
|
40
|
-
Scan for words deserving distinct treatment:
|
|
41
|
-
|
|
42
|
-
- **Brand/product names** — larger size, unique color
|
|
43
|
-
- **ALL CAPS** — scale boost, flash, accent color
|
|
44
|
-
- **Numbers/statistics** — bold weight, accent color
|
|
45
|
-
- **Emotional keywords** — exaggerated animation (overshoot, bounce)
|
|
46
|
-
- **Call-to-action** — highlight, underline, color pop
|
|
47
|
-
- **Marker highlight** — for beyond-color emphasis, see [css-patterns.md](css-patterns.md)
|
|
48
|
-
|
|
49
|
-
## Script-to-Style Mapping
|
|
50
|
-
|
|
51
|
-
| Tone | Font mood | Animation | Color | Size |
|
|
52
|
-
| ------------ | ------------------------ | ---------------------------------- | --------------------------- | ------- |
|
|
53
|
-
| Hype/launch | Heavy condensed, 800-900 | Scale-pop, back.out(1.7), 0.1-0.2s | Bright on dark | 72-96px |
|
|
54
|
-
| Corporate | Clean sans, 600-700 | Fade+slide, power3.out, 0.3s | White/neutral, muted accent | 56-72px |
|
|
55
|
-
| Tutorial | Mono/clean sans, 500-600 | Typewriter/fade, 0.4-0.5s | High contrast, minimal | 48-64px |
|
|
56
|
-
| Storytelling | Serif/elegant, 400-500 | Slow fade, power2.out, 0.5-0.6s | Warm muted tones | 44-56px |
|
|
57
|
-
| Social | Rounded sans, 700-800 | Bounce, elastic.out, word-by-word | Playful, colored pills | 56-80px |
|
|
58
|
-
|
|
59
|
-
## Word Grouping
|
|
60
|
-
|
|
61
|
-
- **High energy:** 2-3 words. Quick turnover.
|
|
62
|
-
- **Conversational:** 3-5 words. Natural phrases.
|
|
63
|
-
- **Measured/calm:** 4-6 words. Longer groups.
|
|
64
|
-
|
|
65
|
-
Break on sentence boundaries, 150ms+ pauses, or max word count.
|
|
66
|
-
|
|
67
|
-
## Positioning
|
|
68
|
-
|
|
69
|
-
- **Landscape (1920x1080):** Bottom 80-120px, centered
|
|
70
|
-
- **Portrait (1080x1920):** Lower middle ~600-700px from bottom, centered
|
|
71
|
-
- Never cover the subject's face
|
|
72
|
-
- `position: absolute` — never relative
|
|
73
|
-
- One caption group visible at a time
|
|
74
|
-
|
|
75
|
-
## Text Overflow Prevention
|
|
76
|
-
|
|
77
|
-
Use `window.__hyperframes.fitTextFontSize()`:
|
|
78
|
-
|
|
79
|
-
```js
|
|
80
|
-
var result = window.__hyperframes.fitTextFontSize(group.text.toUpperCase(), {
|
|
81
|
-
fontFamily: "Outfit",
|
|
82
|
-
fontWeight: 900,
|
|
83
|
-
maxWidth: 1600,
|
|
84
|
-
});
|
|
85
|
-
el.style.fontSize = result.fontSize + "px";
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Options: `maxWidth` (1600 landscape, 900 portrait), `baseFontSize` (78), `minFontSize` (42), `fontWeight`, `fontFamily`, `step` (2).
|
|
89
|
-
|
|
90
|
-
CSS safety nets: `max-width` on container, `overflow: visible` (**not** `hidden` — hidden clips scaled emphasis words and glow effects), `position: absolute`, explicit `height`. When per-word styling uses `scale > 1.0`, compute `maxWidth = safeWidth / maxScale` to leave headroom.
|
|
91
|
-
|
|
92
|
-
**Container pattern:** Full-width absolute container, centered. Do **not** use `left: 50%; transform: translateX(-50%)` — causes clipping at composition edges.
|
|
93
|
-
|
|
94
|
-
## Caption Exit Guarantee
|
|
95
|
-
|
|
96
|
-
Every group **must** have a hard kill after exit animation:
|
|
97
|
-
|
|
98
|
-
```js
|
|
99
|
-
tl.to(groupEl, { opacity: 0, scale: 0.95, duration: 0.12, ease: "power2.in" }, group.end - 0.12);
|
|
100
|
-
tl.set(groupEl, { opacity: 0, visibility: "hidden" }, group.end); // deterministic kill
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Self-lint after building timeline — place **before** `window.__timelines[id] = tl` so it runs at composition init:
|
|
104
|
-
|
|
105
|
-
```js
|
|
106
|
-
GROUPS.forEach(function (group, gi) {
|
|
107
|
-
var el = document.getElementById("cg-" + gi);
|
|
108
|
-
if (!el) return;
|
|
109
|
-
tl.seek(group.end + 0.01);
|
|
110
|
-
var computed = window.getComputedStyle(el);
|
|
111
|
-
if (computed.opacity !== "0" && computed.visibility !== "hidden") {
|
|
112
|
-
console.warn(
|
|
113
|
-
"[caption-lint] group " + gi + " still visible at t=" + (group.end + 0.01).toFixed(2) + "s",
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
tl.seek(0);
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
## Pre-Built Caption Components
|
|
121
|
-
|
|
122
|
-
Before building caption styles from scratch, check the registry — 15 ready-to-use caption components cover the most common styles. Install with `npx hyperframes add <name>` and use as a sub-composition via `data-composition-src`.
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
npx hyperframes catalog --tag caption-style # list all caption components
|
|
126
|
-
npx hyperframes add caption-highlight # install a specific one
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
| Style | Component | Best for |
|
|
130
|
-
| ------------------------- | ---------------------------- | ---------------------------- |
|
|
131
|
-
| TikTok-style highlight | `caption-highlight` | Social, high-energy |
|
|
132
|
-
| Karaoke pill | `caption-pill-karaoke` | Music, lyric videos |
|
|
133
|
-
| Cinematic editorial | `caption-editorial-emphasis` | Documentary, storytelling |
|
|
134
|
-
| Glitch / cyber | `caption-glitch-rgb` | Tech, gaming |
|
|
135
|
-
| Full-screen slam | `caption-kinetic-slam` | Hype, announcements |
|
|
136
|
-
| Neon glow | `caption-neon-glow` | Night, club, neon aesthetics |
|
|
137
|
-
| Neon accent (multi-color) | `caption-neon-accent` | Colorful, playful |
|
|
138
|
-
| Wipe reveal | `caption-clip-wipe` | Clean, modern |
|
|
139
|
-
| Gradient fill | `caption-gradient-fill` | Vibrant, eye-catching |
|
|
140
|
-
| Matrix decode | `caption-matrix-decode` | Sci-fi, tech reveals |
|
|
141
|
-
| Emoji pop | `caption-emoji-pop` | Social, casual |
|
|
142
|
-
| Parallax layers | `caption-parallax-layers` | Depth, cinematic |
|
|
143
|
-
| Particle burst | `caption-particle-burst` | Celebration, impact keywords |
|
|
144
|
-
| Lava texture | `caption-texture` | Bold, dramatic |
|
|
145
|
-
| Weight shift | `caption-weight-shift` | Elegant, typographic |
|
|
146
|
-
|
|
147
|
-
Browse all with previews: [hyperframes.heygen.com/catalog](https://hyperframes.heygen.com/catalog)
|
|
148
|
-
|
|
149
|
-
Caption components ship with transparent backgrounds — they're pure overlays. If the underlying video is bright or busy, add a contrast layer (e.g. a semi-transparent dark div) in the host composition beneath the caption sub-composition, not inside the component itself.
|
|
150
|
-
|
|
151
|
-
## Further References
|
|
152
|
-
|
|
153
|
-
- [dynamic-techniques.md](dynamic-techniques.md) — karaoke, clip-path reveals, slam words, scatter exits, elastic, 3D rotation
|
|
154
|
-
- [transcript-guide.md](transcript-guide.md) — transcription commands, whisper models, external APIs
|
|
155
|
-
- [css-patterns.md](css-patterns.md) — CSS+GSAP marker highlighting (deterministic, fully seekable)
|
|
156
|
-
|
|
157
|
-
## Constraints
|
|
158
|
-
|
|
159
|
-
- Deterministic. No `Math.random()`, no `Date.now()`.
|
|
160
|
-
- Sync to transcript timestamps.
|
|
161
|
-
- One group visible at a time.
|
|
162
|
-
- Every group must have a hard `tl.set` kill at `group.end`.
|
|
163
|
-
- The compiler embeds supported fonts automatically — just declare `font-family` in CSS.
|
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
# CSS Patterns for Marker Highlighting
|
|
2
|
-
|
|
3
|
-
Pure CSS + GSAP implementations of all five MarkerHighlight.js drawing modes. Use these for deterministic rendering in HyperFrames compositions — no external library dependency, full GSAP timeline control.
|
|
4
|
-
|
|
5
|
-
## Table of Contents
|
|
6
|
-
|
|
7
|
-
- [1. Highlight Mode](#1-highlight-mode) — Yellow marker sweep behind text
|
|
8
|
-
- [2. Circle Mode](#2-circle-mode) — Hand-drawn ellipse around text
|
|
9
|
-
- [3. Burst Mode](#3-burst-mode) — Radiating lines from text
|
|
10
|
-
- [4. Scribble Mode](#4-scribble-mode) — Chaotic scribble over text
|
|
11
|
-
- [5. Sketchout Mode](#5-sketchout-mode) — Rough rectangle outline
|
|
12
|
-
|
|
13
|
-
## 1. Highlight Mode
|
|
14
|
-
|
|
15
|
-
Yellow marker sweep behind text. The most common mode.
|
|
16
|
-
|
|
17
|
-
```html
|
|
18
|
-
<span class="mh-highlight-wrap">
|
|
19
|
-
<span class="mh-highlight-bar" id="hl-1"></span>
|
|
20
|
-
<span class="mh-highlight-text">highlighted text</span>
|
|
21
|
-
</span>
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
```css
|
|
25
|
-
.mh-highlight-wrap {
|
|
26
|
-
position: relative;
|
|
27
|
-
display: inline;
|
|
28
|
-
}
|
|
29
|
-
.mh-highlight-bar {
|
|
30
|
-
position: absolute;
|
|
31
|
-
top: 0;
|
|
32
|
-
left: -6px;
|
|
33
|
-
right: -6px;
|
|
34
|
-
bottom: 0;
|
|
35
|
-
background: #fdd835;
|
|
36
|
-
opacity: 0.35;
|
|
37
|
-
transform: scaleX(0);
|
|
38
|
-
transform-origin: left center;
|
|
39
|
-
border-radius: 3px;
|
|
40
|
-
z-index: 0;
|
|
41
|
-
}
|
|
42
|
-
.mh-highlight-text {
|
|
43
|
-
position: relative;
|
|
44
|
-
z-index: 1;
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
```js
|
|
49
|
-
// Sweep in from left
|
|
50
|
-
tl.to("#hl-1", { scaleX: 1, duration: 0.5, ease: "power2.out" }, 0.6);
|
|
51
|
-
|
|
52
|
-
// Optional: skew for hand-drawn feel
|
|
53
|
-
// gsap.set("#hl-1", { skewX: -2 });
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Multi-line Highlight
|
|
57
|
-
|
|
58
|
-
Stagger bars across multiple lines:
|
|
59
|
-
|
|
60
|
-
```js
|
|
61
|
-
tl.to(
|
|
62
|
-
".mh-highlight-bar",
|
|
63
|
-
{
|
|
64
|
-
scaleX: 1,
|
|
65
|
-
duration: 0.5,
|
|
66
|
-
ease: "power2.out",
|
|
67
|
-
stagger: 0.3,
|
|
68
|
-
},
|
|
69
|
-
0.6,
|
|
70
|
-
);
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## 2. Circle Mode
|
|
74
|
-
|
|
75
|
-
Hand-drawn circle around text. Use `border-radius: 50%` with a slight rotation for organic feel.
|
|
76
|
-
|
|
77
|
-
```html
|
|
78
|
-
<span class="mh-circle-wrap">
|
|
79
|
-
<span class="mh-circle-text" id="circle-word">IMPORTANT</span>
|
|
80
|
-
<span class="mh-circle-ring" id="circle-1"></span>
|
|
81
|
-
</span>
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
```css
|
|
85
|
-
.mh-circle-wrap {
|
|
86
|
-
position: relative;
|
|
87
|
-
display: inline;
|
|
88
|
-
}
|
|
89
|
-
.mh-circle-text {
|
|
90
|
-
position: relative;
|
|
91
|
-
z-index: 1;
|
|
92
|
-
}
|
|
93
|
-
.mh-circle-ring {
|
|
94
|
-
position: absolute;
|
|
95
|
-
top: 50%;
|
|
96
|
-
left: 50%;
|
|
97
|
-
width: 130%;
|
|
98
|
-
height: 160%;
|
|
99
|
-
transform: translate(-50%, -50%) rotate(-3deg) scale(0);
|
|
100
|
-
border: 3px solid #e53935;
|
|
101
|
-
border-radius: 50%;
|
|
102
|
-
pointer-events: none;
|
|
103
|
-
z-index: 0;
|
|
104
|
-
}
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
```js
|
|
108
|
-
// Circle scales in with a wobble
|
|
109
|
-
tl.to(
|
|
110
|
-
"#circle-1",
|
|
111
|
-
{
|
|
112
|
-
scale: 1,
|
|
113
|
-
rotation: -3,
|
|
114
|
-
duration: 0.6,
|
|
115
|
-
ease: "back.out(1.7)",
|
|
116
|
-
transformOrigin: "center center",
|
|
117
|
-
},
|
|
118
|
-
0.7,
|
|
119
|
-
);
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Variations
|
|
123
|
-
|
|
124
|
-
```css
|
|
125
|
-
/* Tighter circle (for short words) */
|
|
126
|
-
.mh-circle-ring.tight {
|
|
127
|
-
width: 150%;
|
|
128
|
-
height: 180%;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Squared circle (rounded rectangle) */
|
|
132
|
-
.mh-circle-ring.rounded {
|
|
133
|
-
border-radius: 30%;
|
|
134
|
-
width: 120%;
|
|
135
|
-
height: 140%;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/* Ellipse (wider than tall) */
|
|
139
|
-
.mh-circle-ring.ellipse {
|
|
140
|
-
width: 150%;
|
|
141
|
-
height: 130%;
|
|
142
|
-
border-radius: 50%;
|
|
143
|
-
}
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
## 3. Burst Mode
|
|
147
|
-
|
|
148
|
-
Radiating lines from text center. Each line is a positioned div rotated to its angle.
|
|
149
|
-
|
|
150
|
-
```html
|
|
151
|
-
<span class="mh-burst-wrap">
|
|
152
|
-
<span class="mh-burst-text">WOW</span>
|
|
153
|
-
<span class="mh-burst-container" id="burst-1">
|
|
154
|
-
<span class="mh-burst-line" style="--angle: 0deg; --len: 70px;"></span>
|
|
155
|
-
<span class="mh-burst-line" style="--angle: 30deg; --len: 55px;"></span>
|
|
156
|
-
<span class="mh-burst-line" style="--angle: 60deg; --len: 80px;"></span>
|
|
157
|
-
<span class="mh-burst-line" style="--angle: 90deg; --len: 45px;"></span>
|
|
158
|
-
<span class="mh-burst-line" style="--angle: 120deg; --len: 65px;"></span>
|
|
159
|
-
<span class="mh-burst-line" style="--angle: 150deg; --len: 75px;"></span>
|
|
160
|
-
<span class="mh-burst-line" style="--angle: 180deg; --len: 50px;"></span>
|
|
161
|
-
<span class="mh-burst-line" style="--angle: 210deg; --len: 60px;"></span>
|
|
162
|
-
<span class="mh-burst-line" style="--angle: 240deg; --len: 80px;"></span>
|
|
163
|
-
<span class="mh-burst-line" style="--angle: 270deg; --len: 40px;"></span>
|
|
164
|
-
<span class="mh-burst-line" style="--angle: 300deg; --len: 70px;"></span>
|
|
165
|
-
<span class="mh-burst-line" style="--angle: 330deg; --len: 55px;"></span>
|
|
166
|
-
</span>
|
|
167
|
-
</span>
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
```css
|
|
171
|
-
.mh-burst-wrap {
|
|
172
|
-
position: relative;
|
|
173
|
-
display: inline;
|
|
174
|
-
}
|
|
175
|
-
.mh-burst-text {
|
|
176
|
-
position: relative;
|
|
177
|
-
z-index: 2;
|
|
178
|
-
}
|
|
179
|
-
.mh-burst-container {
|
|
180
|
-
position: absolute;
|
|
181
|
-
top: 50%;
|
|
182
|
-
left: 50%;
|
|
183
|
-
width: 0;
|
|
184
|
-
height: 0;
|
|
185
|
-
z-index: 1;
|
|
186
|
-
}
|
|
187
|
-
.mh-burst-line {
|
|
188
|
-
position: absolute;
|
|
189
|
-
display: block;
|
|
190
|
-
width: 3px;
|
|
191
|
-
height: var(--len);
|
|
192
|
-
background: #1e88e5;
|
|
193
|
-
left: -1.5px;
|
|
194
|
-
top: calc(-1 * var(--len));
|
|
195
|
-
transform: rotate(var(--angle));
|
|
196
|
-
transform-origin: bottom center;
|
|
197
|
-
opacity: 0;
|
|
198
|
-
}
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
```js
|
|
202
|
-
// All lines burst outward simultaneously with slight stagger
|
|
203
|
-
tl.fromTo(
|
|
204
|
-
"#burst-1 .mh-burst-line",
|
|
205
|
-
{ scaleY: 0, opacity: 0 },
|
|
206
|
-
{ scaleY: 1, opacity: 1, duration: 0.4, ease: "power2.out", stagger: 0.03 },
|
|
207
|
-
0.7,
|
|
208
|
-
);
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
**Vary line lengths** (40-80px range) for an organic, hand-drawn feel. Equal lengths look mechanical.
|
|
212
|
-
|
|
213
|
-
## 4. Scribble Mode
|
|
214
|
-
|
|
215
|
-
Wavy SVG underlines and strikethroughs that draw themselves via `stroke-dashoffset`.
|
|
216
|
-
|
|
217
|
-
```html
|
|
218
|
-
<span class="mh-scribble-wrap">
|
|
219
|
-
<span class="mh-scribble-text">underlined text</span>
|
|
220
|
-
<svg class="mh-scribble-svg" viewBox="0 0 500 24" preserveAspectRatio="none">
|
|
221
|
-
<path
|
|
222
|
-
id="scribble-1"
|
|
223
|
-
d="M0,12 Q31,0 62,12 Q93,24 125,12 Q156,0 187,12 Q218,24 250,12 Q281,0 312,12 Q343,24 375,12 Q406,0 437,12 Q468,24 500,12"
|
|
224
|
-
fill="none"
|
|
225
|
-
stroke="#FDD835"
|
|
226
|
-
stroke-width="3"
|
|
227
|
-
stroke-linecap="round"
|
|
228
|
-
/>
|
|
229
|
-
</svg>
|
|
230
|
-
</div>
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
```css
|
|
234
|
-
.mh-scribble-wrap {
|
|
235
|
-
position: relative;
|
|
236
|
-
display: inline;
|
|
237
|
-
}
|
|
238
|
-
.mh-scribble-text {
|
|
239
|
-
position: relative;
|
|
240
|
-
z-index: 1;
|
|
241
|
-
}
|
|
242
|
-
.mh-scribble-svg {
|
|
243
|
-
position: absolute;
|
|
244
|
-
left: 0;
|
|
245
|
-
bottom: -6px;
|
|
246
|
-
width: 100%;
|
|
247
|
-
height: 24px;
|
|
248
|
-
z-index: 0;
|
|
249
|
-
}
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
```js
|
|
253
|
-
// Measure path length and set initial dash state
|
|
254
|
-
var path = document.querySelector("#scribble-1");
|
|
255
|
-
var len = path.getTotalLength();
|
|
256
|
-
gsap.set(path, { strokeDasharray: len, strokeDashoffset: len });
|
|
257
|
-
|
|
258
|
-
// Draw the line
|
|
259
|
-
tl.to(
|
|
260
|
-
"#scribble-1",
|
|
261
|
-
{
|
|
262
|
-
strokeDashoffset: 0,
|
|
263
|
-
duration: 0.8,
|
|
264
|
-
ease: "power1.inOut",
|
|
265
|
-
},
|
|
266
|
-
0.7,
|
|
267
|
-
);
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
### Strikethrough Variant
|
|
271
|
-
|
|
272
|
-
Position the SVG at `top: 50%; transform: translateY(-50%)` instead of `bottom: -6px`.
|
|
273
|
-
|
|
274
|
-
### Wavy Path Generator
|
|
275
|
-
|
|
276
|
-
Scale the path's viewBox width to match text width. The wave pattern `Q x1,y1 x2,y2` alternates between `y=0` and `y=24` for a natural wobble. Adjust the control points for tighter or looser waves:
|
|
277
|
-
|
|
278
|
-
- **Tight waves**: smaller x-increments (25px per half-wave)
|
|
279
|
-
- **Loose waves**: larger x-increments (50px per half-wave)
|
|
280
|
-
- **Amplitude**: change the y range (0-24 for standard, 0-16 for subtle)
|
|
281
|
-
|
|
282
|
-
## 5. Sketchout Mode
|
|
283
|
-
|
|
284
|
-
Cross-hatch lines over de-emphasized text. Multiple angled lines create a "crossed out" effect.
|
|
285
|
-
|
|
286
|
-
```html
|
|
287
|
-
<span class="mh-sketchout-wrap">
|
|
288
|
-
<span class="mh-sketchout-text">old price</span>
|
|
289
|
-
<span class="mh-sketchout-lines" id="sketchout-1">
|
|
290
|
-
<span class="mh-sketchout-line mh-sketchout-fwd"></span>
|
|
291
|
-
<span class="mh-sketchout-line mh-sketchout-bwd"></span>
|
|
292
|
-
</span>
|
|
293
|
-
</span>
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
```css
|
|
297
|
-
.mh-sketchout-wrap {
|
|
298
|
-
position: relative;
|
|
299
|
-
display: inline;
|
|
300
|
-
}
|
|
301
|
-
.mh-sketchout-text {
|
|
302
|
-
position: relative;
|
|
303
|
-
z-index: 0;
|
|
304
|
-
}
|
|
305
|
-
.mh-sketchout-lines {
|
|
306
|
-
position: absolute;
|
|
307
|
-
top: 0;
|
|
308
|
-
left: -4px;
|
|
309
|
-
right: -4px;
|
|
310
|
-
bottom: 0;
|
|
311
|
-
overflow: hidden;
|
|
312
|
-
z-index: 1;
|
|
313
|
-
}
|
|
314
|
-
.mh-sketchout-line {
|
|
315
|
-
position: absolute;
|
|
316
|
-
display: block;
|
|
317
|
-
top: 50%;
|
|
318
|
-
left: 0;
|
|
319
|
-
width: 100%;
|
|
320
|
-
height: 2px;
|
|
321
|
-
background: #e53935;
|
|
322
|
-
transform-origin: left center;
|
|
323
|
-
transform: scaleX(0);
|
|
324
|
-
}
|
|
325
|
-
.mh-sketchout-fwd {
|
|
326
|
-
transform: scaleX(0) rotate(-12deg);
|
|
327
|
-
}
|
|
328
|
-
.mh-sketchout-bwd {
|
|
329
|
-
transform: scaleX(0) rotate(12deg);
|
|
330
|
-
}
|
|
331
|
-
```
|
|
332
|
-
|
|
333
|
-
```js
|
|
334
|
-
// Forward slash draws first
|
|
335
|
-
tl.to(
|
|
336
|
-
"#sketchout-1 .mh-sketchout-fwd",
|
|
337
|
-
{
|
|
338
|
-
scaleX: 1,
|
|
339
|
-
duration: 0.3,
|
|
340
|
-
ease: "power2.out",
|
|
341
|
-
},
|
|
342
|
-
1.0,
|
|
343
|
-
);
|
|
344
|
-
|
|
345
|
-
// Backward slash follows
|
|
346
|
-
tl.to(
|
|
347
|
-
"#sketchout-1 .mh-sketchout-bwd",
|
|
348
|
-
{
|
|
349
|
-
scaleX: 1,
|
|
350
|
-
duration: 0.3,
|
|
351
|
-
ease: "power2.out",
|
|
352
|
-
},
|
|
353
|
-
1.15,
|
|
354
|
-
);
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
## Combining Modes in Captions
|
|
358
|
-
|
|
359
|
-
Use mode cycling for visual variety across caption groups:
|
|
360
|
-
|
|
361
|
-
```js
|
|
362
|
-
var MODES = ["highlight", "circle", "burst", "scribble"];
|
|
363
|
-
|
|
364
|
-
GROUPS.forEach(function (group, gi) {
|
|
365
|
-
var mode = MODES[gi % MODES.length];
|
|
366
|
-
// Apply the mode's CSS pattern to emphasis words in this group
|
|
367
|
-
group.emphasisWords.forEach(function (word) {
|
|
368
|
-
applyMode(word.el, mode, tl, word.start);
|
|
369
|
-
});
|
|
370
|
-
});
|
|
371
|
-
```
|
|
372
|
-
|
|
373
|
-
Cycle every 2-3 groups for high energy, every 3-4 for medium, every 4-5 for low.
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# Design Picker
|
|
2
|
-
|
|
3
|
-
Two-phase visual picker: mood boards first (pick a complete direction), then fine-tune individual categories.
|
|
4
|
-
|
|
5
|
-
## Prerequisites
|
|
6
|
-
|
|
7
|
-
Read these before generating options — they define the rules your options must follow:
|
|
8
|
-
|
|
9
|
-
- [typography.md](typography.md)
|
|
10
|
-
- [../house-style.md](../house-style.md)
|
|
11
|
-
- [video-composition.md](video-composition.md)
|
|
12
|
-
- [../visual-styles.md](../visual-styles.md)
|
|
13
|
-
- [beat-direction.md](beat-direction.md)
|
|
14
|
-
|
|
15
|
-
## Building the picker
|
|
16
|
-
|
|
17
|
-
1. Generate options **deeply contextual to the user's prompt**. Every category — not just architectures — must reflect the specific product, brand, audience, and mood. Generic options that could appear on any picker are a failure.
|
|
18
|
-
|
|
19
|
-
**Mood boards** — as many as the creative space warrants (4-8). Every board must tell a different STORY about the brand, not just reshuffle the same elements. Ask: "what are the genuinely different ways to position this product?" A cat food brand might be: playful chaos, premium positioning, comfort/cozy, social-native, flavor showcase, humor-led, sensory/appetizing. Each is a different narrative, not a different font on the same layout.
|
|
20
|
-
|
|
21
|
-
**Architectures** — one per mood board minimum, each visually distinct. Use `{{prompt_headline}}` and `{{prompt_sub}}` tokens. If the user provided media assets, use them as background images (use `url(path)` without quotes — single quotes inside `style='...'` break the attribute).
|
|
22
|
-
|
|
23
|
-
**Palettes** (5-6) — named after the brand's world, not generic moods. The palette names and colors should feel like they belong to THIS specific product. Always mix dark + light + tinted. **Every palette must be visually distinct at swatch size.** If two palettes share the same background lightness AND a similar accent hue, cut one. Test: would a user see the difference in a 14px swatch chip? If not, they're duplicates.
|
|
24
|
-
|
|
25
|
-
**Type pairings** (5-6) — **RUN the font discovery script from typography.md BEFORE generating pairings.** This is not optional. Download Google Fonts metadata, run the script, and pick from its output. You will otherwise reach for the same 8 fonts every time (Bricolage Grotesque, Instrument Serif, Fraunces, Archivo Black, DM Serif Display, Space Grotesk, Fredoka) — that's your training data default, not a contextual choice. Match the brand's energy and audience. Cross-category per typography.md (never two sans-serifs).
|
|
26
|
-
|
|
27
|
-
2. `mkdir -p .hyperframes` then copy [../templates/design-picker.html](../templates/design-picker.html) to `.hyperframes/pick-design.html`.
|
|
28
|
-
3. Replace these placeholders using Python (don't hand-escape quotes in sed):
|
|
29
|
-
- `__ARCHITECTURES_JSON__` — array of architecture objects
|
|
30
|
-
- `__PALETTES_JSON__` — array of palette objects
|
|
31
|
-
- `__TYPEPAIRS_JSON__` — array of type pairing objects
|
|
32
|
-
- `__MOODBOARDS_JSON__` — array of mood board objects (see format below)
|
|
33
|
-
- `__PROMPT_JSON__` — object with prompt context (see format below)
|
|
34
|
-
|
|
35
|
-
### Architecture data format
|
|
36
|
-
|
|
37
|
-
Each architecture object must include a `preview_html` field — the HTML that renders in the preview panel. Use token placeholders that the template replaces at runtime: `{{bg}}`, `{{fg}}`, `{{ac}}`, `{{mt}}`, `{{hf}}`, `{{hw}}`, `{{bf}}`, `{{bw}}`, `{{cr}}` (corner radius), `{{pad}}`, `{{gap}}`, `{{shadow}}`, `{{g}}` (grid line color), `{{fg3}}`/`{{fg6}}`/`{{fg8}}`/`{{fg15}}` (fg at opacity), `{{ac3}}`/`{{ac5}}`/`{{ac25}}` (accent at opacity).
|
|
38
|
-
|
|
39
|
-
**Every token must be used.** Apply `{{cr}}` to all cards, buttons, and containers. Apply `{{shadow}}` to elevated elements (cards, buttons, code blocks). Apply `{{pad}}` and `{{gap}}` to control spacing. If a token isn't used in the preview_html, that option will have no visible effect.
|
|
40
|
-
|
|
41
|
-
**Density matters.** Each architecture preview must include 15+ distinct elements to give the user a real sense of the layout. Include: headline, subhead, body paragraph, label/overline, stat with number, secondary stat, quote/testimonial, attribution, card with title+body, second card (different treatment), code/command block, primary button, secondary button, list or tags, accent divider/rule, and a data element (table row, progress bar, or chart).
|
|
42
|
-
|
|
43
|
-
Optionally include `components` (component styling rules) and `dos` (do's and don'ts) as strings — these appear in the generated design.md.
|
|
44
|
-
|
|
45
|
-
**Layout constraint:** All preview HTML must use percentage widths or `max-width: 100%`. Use `flex-wrap: wrap` on all flex rows. Absolute-positioned decoratives must stay within a parent with `overflow: hidden`.
|
|
46
|
-
|
|
47
|
-
**Security:** Architecture `preview_html` must not contain `<script>` tags, event handlers (`onclick`, `onerror`, etc.), or `javascript:` URLs. It is injected via `innerHTML`.
|
|
48
|
-
|
|
49
|
-
**Image URLs:** When using background images in `preview_html`, use `url(path/to/image.jpg)` WITHOUT quotes around the path. Single quotes like `url('path.jpg')` break because `preview_html` is inside a `style='...'` attribute — the inner single quotes terminate the outer attribute.
|
|
50
|
-
|
|
51
|
-
**Palette variety:** Always include a mix of light, dark, and tinted backgrounds across the 6 palettes — even for calm/wellness prompts.
|
|
52
|
-
|
|
53
|
-
### Example architecture object
|
|
54
|
-
|
|
55
|
-
```json
|
|
56
|
-
{
|
|
57
|
-
"name": "Editorial Stack",
|
|
58
|
-
"description": "Vertical rhythm with large type, pull quotes, and data callouts",
|
|
59
|
-
"tag": "editorial / longform / narrative",
|
|
60
|
-
"mood": "Confident, unhurried, typographically driven",
|
|
61
|
-
"preview_html": "<div style='background:{{bg}};color:{{fg}};padding:{{pad}};min-height:100vh;font-family:\"{{bf}}\",sans-serif;font-weight:{{bw}};'><div style='max-width:100%;display:flex;flex-direction:column;gap:{{gap}};'><div style='font-size:10px;text-transform:uppercase;letter-spacing:0.12em;color:{{mt}};'>Overline Label</div><div style='font-family:\"{{hf}}\",serif;font-weight:{{hw}};font-size:48px;line-height:1.1;letter-spacing:-0.02em;'>The Headline Goes Here</div><div style='font-size:20px;color:{{mt}};max-width:70%;line-height:1.5;'>Subheading text that introduces the narrative arc of this composition with enough words to fill two lines.</div><div style='font-size:15px;line-height:1.7;color:{{fg}};max-width:65%;'>Body paragraph with real sentences. The quick brown fox jumps over the lazy dog. This gives a sense of text density and reading rhythm at the chosen type size.</div><div style='display:flex;gap:{{gap}};flex-wrap:wrap;'><div style='background:{{fg6}};border-radius:{{cr}};padding:{{pad}};flex:1;min-width:200px;box-shadow:{{shadow}};'><div style='font-size:36px;font-family:\"{{hf}}\",serif;font-weight:{{hw}};color:{{ac}};'>2.4M</div><div style='font-size:12px;color:{{mt}};margin-top:4px;'>Primary Stat</div></div><div style='background:{{fg6}};border-radius:{{cr}};padding:{{pad}};flex:1;min-width:200px;box-shadow:{{shadow}};'><div style='font-size:36px;font-family:\"{{hf}}\",serif;font-weight:{{hw}};color:{{fg}};'>87%</div><div style='font-size:12px;color:{{mt}};margin-top:4px;'>Secondary Stat</div></div></div><div style='border-left:3px solid {{ac}};padding:12px {{pad}};background:{{ac3}};border-radius:0 {{cr}} {{cr}} 0;'><div style='font-size:18px;font-style:italic;color:{{fg}};line-height:1.5;'>\"A pull quote that captures the key insight of the piece.\"</div><div style='font-size:12px;color:{{mt}};margin-top:8px;'>— Attribution Name</div></div><div style='background:{{fg3}};border-radius:{{cr}};padding:{{pad}};box-shadow:{{shadow}};'><div style='font-size:14px;font-weight:{{hw}};margin-bottom:8px;'>Card Title</div><div style='font-size:13px;color:{{mt}};line-height:1.5;'>Card body text with a different treatment than the main content area.</div></div><div style='background:{{ac5}};border:1px solid {{ac25}};border-radius:{{cr}};padding:{{pad}};box-shadow:{{shadow}};'><div style='font-size:14px;font-weight:{{hw}};color:{{ac}};margin-bottom:8px;'>Accent Card</div><div style='font-size:13px;color:{{fg}};line-height:1.5;'>Second card with a tinted accent treatment for variety.</div></div><div style='font-family:monospace;font-size:13px;background:{{fg8}};border-radius:{{cr}};padding:{{pad}};color:{{fg15}};box-shadow:{{shadow}};'>$ hyperframes render --output video.mp4</div><div style='display:flex;gap:12px;flex-wrap:wrap;'><button style='background:{{ac}};color:{{bg}};border:none;padding:10px 24px;border-radius:{{cr}};font-size:14px;font-weight:600;box-shadow:{{shadow}};cursor:pointer;'>Primary Action</button><button style='background:transparent;color:{{fg}};border:1px solid {{fg15}};padding:10px 24px;border-radius:{{cr}};font-size:14px;cursor:pointer;'>Secondary</button></div><div style='display:flex;gap:8px;flex-wrap:wrap;'><span style='background:{{fg6}};border-radius:100px;padding:4px 12px;font-size:11px;color:{{mt}};'>Tag One</span><span style='background:{{fg6}};border-radius:100px;padding:4px 12px;font-size:11px;color:{{mt}};'>Tag Two</span><span style='background:{{ac5}};border-radius:100px;padding:4px 12px;font-size:11px;color:{{ac}};'>Accent Tag</span></div><div style='height:1px;background:linear-gradient(to right,{{ac25}},{{fg6}},{{ac25}});'></div><div style='display:flex;justify-content:space-between;font-size:12px;color:{{mt}};border-bottom:1px solid {{g}};padding:8px 0;'><span>Data row label</span><span style='color:{{fg}};font-weight:600;'>1,234</span></div></div></div>"
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Mood board data format
|
|
66
|
-
|
|
67
|
-
Each mood board pre-selects one option from each category. The user picks a mood board in Phase 1, then fine-tunes in Phase 2 with those selections pre-filled.
|
|
68
|
-
|
|
69
|
-
```json
|
|
70
|
-
{
|
|
71
|
-
"name": "Terminal Precision",
|
|
72
|
-
"description": "Code-forward, data-dense, CLI energy. Dark canvas, monospace body, sharp corners.",
|
|
73
|
-
"theme": "dark",
|
|
74
|
-
"arch_index": 0,
|
|
75
|
-
"palette_index": 0,
|
|
76
|
-
"type_index": 0,
|
|
77
|
-
"corners_index": 0,
|
|
78
|
-
"density_index": 0,
|
|
79
|
-
"depth_index": 1,
|
|
80
|
-
"easing_index": 0,
|
|
81
|
-
"corners": "0px",
|
|
82
|
-
"padding": "12px",
|
|
83
|
-
"gap": "8px",
|
|
84
|
-
"shadow": "0 2px 16px rgba(0,230,255,0.15)"
|
|
85
|
-
}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Indices reference into the ARCHITECTURES, PALETTES, and TYPEPAIRS arrays. The template renders a mini preview of each mood board using its architecture's `preview_html` with the mood board's palette/type applied.
|
|
89
|
-
|
|
90
|
-
### Prompt context data format
|
|
91
|
-
|
|
92
|
-
```json
|
|
93
|
-
{
|
|
94
|
-
"title": "AI Coding Assistant",
|
|
95
|
-
"headline": "Your Code, Understood.",
|
|
96
|
-
"subline": "An AI coding assistant that reads your entire codebase.",
|
|
97
|
-
"section_desc": "Layout options for your product launch"
|
|
98
|
-
}
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
`title` appears in the Phase 1 header. `headline` and `subline` replace `{{prompt_headline}}` and `{{prompt_sub}}` in architecture preview_html so previews show real content.
|
|
102
|
-
|
|
103
|
-
### Content tokens in preview_html
|
|
104
|
-
|
|
105
|
-
In addition to the standard design tokens (`{{bg}}`, `{{fg}}`, `{{ac}}`, etc.), architecture `preview_html` can use:
|
|
106
|
-
|
|
107
|
-
- `{{prompt_headline}}` — the user's actual headline text
|
|
108
|
-
- `{{prompt_sub}}` — the user's actual subline text
|
|
109
|
-
|
|
110
|
-
This makes previews contextual — the user sees their own content styled, not generic placeholders.
|
|
111
|
-
|
|
112
|
-
## Serving and user selection
|
|
113
|
-
|
|
114
|
-
4. Serve the file: `cd <project-dir> && python3 -m http.server 8723 &` (use port 8723 or any unused port above 8000; if the curl check fails, try the next port). Verify: `curl -s -o /dev/null -w "%{http_code}" http://localhost:8723/.hyperframes/pick-design.html` — only share the link if it returns 200. Do NOT use `npx hyperframes preview` for the picker — it blocks. Only start the HTTP server from the main conversation thread. If you are running as a dispatched task or subagent, return the file path and let the caller serve it.
|
|
115
|
-
5. Once the user picks, tell them: "Copy the design.md from the picker and paste it here." The user pastes the markdown back into the conversation. Save it verbatim to `design.md` in the project root — it's already in spec format (YAML frontmatter + prose sections). After the user pastes, kill the background server: `kill %1` or `kill $(lsof -ti:8723)`. Then proceed with construction.
|
|
116
|
-
|
|
117
|
-
The picker outputs a [google-labs-code/design.md](https://github.com/google-labs-code/design.md) spec-compliant file: YAML frontmatter with `colors`, `typography`, `rounded`, and `spacing` tokens, followed by `## Overview`, `## Colors`, `## Typography`, `## Layout`, `## Elevation`, `## Components`, and `## Do's and Don'ts` prose sections.
|