Skip to content

Commit ac48ab6

Browse files
chore(catalog): publish generated catalog
1 parent a4e6bc3 commit ac48ab6

100 files changed

Lines changed: 229 additions & 203 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/catalog/blocks/mk-callout-highlight.mdx‎

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
1414
title="Word-Sweep Highlight"
1515
description="A sentence whose word-by-word emphasis is driven by a single scalar — tween it to sync the highlight with a voiceover"
1616
variables={[]}
17-
meta={{"duration":8,"width":1920,"height":1080,"category":"Captions","badge":"Stable","codeLines":156}}
17+
meta={{"duration":8,"width":1920,"height":1080,"category":"Captions","badge":"Stable","codeLines":182}}
1818
attribution={{"path":"registry/blocks/mk-callout-highlight","tags":["typography","karaoke","captions","minimal"]}}
1919
hasCode
2020
rawUrl="https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/blocks/mk-callout-highlight/mk-callout-highlight.html"
@@ -55,8 +55,20 @@ import { InstallCommand } from "/snippets/install-command.jsx";
5555
overflow: hidden;
5656
background: transparent; /* overlays footage or mk-background */
5757
}
58-
#mk-ch-box {
58+
#mk-ch-center {
59+
/* CSS centring. The box is a flex item of this full-frame wrapper, so its
60+
place is laid out by the browser rather than measured from a DOM rect
61+
taken before web fonts are ready. An explicit CONFIG.x / CONFIG.y turns
62+
that axis into an edge offset (see the script). No pointer-events:none
63+
here: it inherits to the word spans and the contrast audit skips them. */
5964
position: absolute;
65+
inset: 0;
66+
display: flex;
67+
align-items: center;
68+
justify-content: center;
69+
}
70+
#mk-ch-box {
71+
flex: none; /* max-content width, clamped by max-width; never shrunk */
6072
font-family: var(--mk-font);
6173
font-weight: 500;
6274
letter-spacing: -0.015em;
@@ -75,7 +87,9 @@ import { InstallCommand } from "/snippets/install-command.jsx";
7587
data-width="1920"
7688
data-height="1080"
7789
>
78-
<div id="mk-ch-box" data-layout-allow-occlusion></div>
90+
<div id="mk-ch-center">
91+
<div id="mk-ch-box" data-layout-allow-occlusion></div>
92+
</div>
7993
<div
8094
id="mk-ch-drv"
8195
class="clip"
@@ -99,7 +113,9 @@ import { InstallCommand } from "/snippets/install-command.jsx";
99113
fontSize: 60,
100114
lineHeight: 1.3,
101115
maxWidth: 700, // px; sentence wraps inside this
102-
x: 1030, // box left edge; null = centered horizontally
116+
x: 1030, // box left edge; null = centered horizontally. Keep x + maxWidth <= 1920:
117+
// the box never shrinks (flex: none), so past the frame edge it is clipped
118+
// by the root's overflow instead of wrapping earlier.
103119
y: null, // box top edge; null = centered vertically
104120
align: "left",
105121
sweep: { start: 1.2, end: 6.2 }, // block-local seconds, linear
@@ -132,12 +148,19 @@ import { InstallCommand } from "/snippets/install-command.jsx";
132148
wordEls.push(span);
133149
});
134150
135-
/* position (measure after building) */
136-
var rect = box.getBoundingClientRect();
137-
box.style.left =
138-
(CONFIG.x === null ? Math.round((1920 - rect.width) / 2) : CONFIG.x) + "px";
139-
box.style.top =
140-
(CONFIG.y === null ? Math.round((1080 - rect.height) / 2) : CONFIG.y) + "px";
151+
/* position: #mk-ch-center centres the box with flex (no measurement, so the
152+
placement does not depend on font timing). A non-null CONFIG.x / CONFIG.y
153+
switches that axis to an edge offset: the box keeps its content width
154+
(clamped by maxWidth) and is pushed from the frame edge by a margin. */
155+
var center = document.getElementById("mk-ch-center");
156+
if (CONFIG.x !== null) {
157+
center.style.justifyContent = "flex-start";
158+
box.style.marginLeft = CONFIG.x + "px";
159+
}
160+
if (CONFIG.y !== null) {
161+
center.style.alignItems = "flex-start";
162+
box.style.marginTop = CONFIG.y + "px";
163+
}
141164
142165
/* state proxy: GSAP animates st.p, render derives every word color from it */
143166
var st = { p: 0 };
@@ -152,6 +175,9 @@ import { InstallCommand } from "/snippets/install-command.jsx";
152175
153176
var tl = gsap.timeline({ paused: true });
154177
178+
/* entrance / exit motion stays a GSAP transform on the box itself: the box
179+
carries no CSS transform (centring is flex on the parent), so there is
180+
nothing for the tween to fight. */
155181
if (CONFIG.animationIn) {
156182
gsap.set(box, { opacity: 0, y: 24 });
157183
tl.to(box, { opacity: 1, y: 0, duration: 0.7, ease: "power3.out" }, 0.3);

‎docs/catalog/components/camera-scan-gate.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
1313
compositionSrc="compositions/components/camera-scan-gate.html"
1414
title="Camera Scan Gate"
1515
description="A camera and QR recognition moment with a viewfinder sweep, bracket lock, confirmation pulse, and verified next beat."
16-
variables={[{"id":"scanColor","type":"string","role":"style","label":"Scan color","description":"Any CSS color value used by the scan line and recognition glow.","default":"var(--brand)"},{"id":"targetLabel","type":"string","role":"content","label":"Target label","description":"Confirmation label revealed at recognition lock. Blank hides the line.","default":"Verified"},{"id":"sweepSpeed","type":"number","role":"timing","label":"Sweep speed","description":"Speed multiplier for the scan sweep phase only.","default":1,"min":0.8,"max":1.6,"step":0.1,"unit":"x"}]}
16+
variables={[{"id":"scanColor","type":"string","role":"style","label":"Scan color","description":"Any CSS color value used by the scan line and recognition glow.","default":"var(--brand, #22c55e)"},{"id":"targetLabel","type":"string","role":"content","label":"Target label","description":"Confirmation label revealed at recognition lock. Blank hides the line.","default":"Verified"},{"id":"sweepSpeed","type":"number","role":"timing","label":"Sweep speed","description":"Speed multiplier for the scan sweep phase only.","default":1,"min":0.8,"max":1.6,"step":0.1,"unit":"x"}]}
1717
meta={{"category":"Camera","badge":"Stable","codeLines":522}}
1818
attribution={{"path":"registry/components/camera-scan-gate","tags":["prop","ui-props","camera","qr","scan","recognition","interaction","demonstrate"]}}
1919
hasCode
@@ -40,7 +40,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
4040
it for passive camera decoration or a generic loading state.
4141
4242
Variables (declared in data-composition-variables below):
43-
- scanColor (string, default "var(--brand)"): any CSS color value used by
43+
- scanColor (string, default "var(--brand, #22c55e)"): any CSS color value used by
4444
the scan line, lock brackets, and confirmation glow.
4545
- targetLabel (string, default "Verified"): label revealed at lock. Empty
4646
string hides the label line entirely.
@@ -80,7 +80,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
8080
<html
8181
lang="en"
8282
data-composition-variables='[
83-
{ "id": "scanColor", "type": "string", "role": "style", "label": "Scan color", "description": "Any CSS color value used by the scan line and recognition glow.", "default": "var(--brand)" },
83+
{ "id": "scanColor", "type": "string", "role": "style", "label": "Scan color", "description": "Any CSS color value used by the scan line and recognition glow.", "default": "var(--brand, #22c55e)" },
8484
{ "id": "targetLabel", "type": "string", "role": "content", "label": "Target label", "description": "Confirmation label revealed at recognition lock. Blank hides the line.", "default": "Verified" },
8585
{ "id": "sweepSpeed", "type": "number", "role": "timing", "label": "Sweep speed", "description": "Speed multiplier for the scan sweep phase only.", "default": 1, "min": 0.8, "max": 1.6, "step": 0.1, "unit": "x" }
8686
]'
@@ -394,7 +394,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
394394
: {};
395395
var scanColor =
396396
vars.scanColor == null || String(vars.scanColor).trim() === ""
397-
? "var(--brand)"
397+
? "var(--brand, #22c55e)"
398398
: String(vars.scanColor);
399399
var targetLabel = vars.targetLabel == null ? "" : String(vars.targetLabel);
400400
var rawSweepSpeed = Number(vars.sweepSpeed);
@@ -573,7 +573,7 @@ want to change on the element:
573573

574574
| Variable | Default | Accepts | What it does |
575575
| --- | --- | --- | --- |
576-
| `scanColor` | `var(--brand)` | string | Any CSS color value used by the scan line and recognition glow. |
576+
| `scanColor` | `var(--brand, #22c55e)` | string | Any CSS color value used by the scan line and recognition glow. |
577577
| `targetLabel` | `Verified` | string | Confirmation label revealed at recognition lock. Blank hides the line. |
578578
| `sweepSpeed` | `1` | 0.8x to 1.6x, step 0.1x | Speed multiplier for the scan sweep phase only. |
579579

@@ -584,7 +584,7 @@ defaults, so this behaves exactly like the preview above until you change one:
584584
<div
585585
data-composition-id="camera-scan-gate"
586586
data-composition-src="compositions/components/camera-scan-gate.html"
587-
data-variable-values='{"scanColor":"var(--brand)","targetLabel":"Verified","sweepSpeed":1}'
587+
data-variable-values='{"scanColor":"var(--brand, #22c55e)","targetLabel":"Verified","sweepSpeed":1}'
588588
></div>
589589
```
590590

‎docs/catalog/components/device-frame-stage.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
4444
hardware reveal, glare sweep, or camera-lens tour, ever.
4545
4646
This file is a mountable HyperFrames sub-composition (see
47-
skills/hyperframes-core/references/sub-compositions.md): a host
47+
skills/hyperframes/references/format.md): a host
4848
composition embeds it via a clip carrying data-composition-src, a
4949
matching data-composition-id, and its own data-start / data-duration /
5050
data-track-index / data-width / data-height. Everything the render needs

‎docs/catalog/components/focus-swap.mdx‎

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ import { InstallCommand } from "/snippets/install-command.jsx";
8989
container-type: size;
9090
isolation: isolate;
9191
overflow: hidden;
92-
background: var(--bg);
93-
color: var(--fg);
94-
font-family: var(--font-body);
92+
background: var(--bg, #070a12);
93+
color: var(--fg, #f8fafc);
94+
font-family: var(--font-body, Inter, system-ui, sans-serif);
9595
}
9696
9797
.fs-clip {
@@ -121,15 +121,15 @@ import { InstallCommand } from "/snippets/install-command.jsx";
121121
justify-content: space-between;
122122
padding: 5cqh 3.2cqw;
123123
overflow: hidden;
124-
border: 0.16cqw solid var(--border);
125-
border-radius: var(--radius);
126-
background: var(--surface);
127-
box-shadow: 0 2.2cqh 5cqh color-mix(in srgb, var(--bg) 72%, transparent);
124+
border: 0.16cqw solid var(--border, #34405a);
125+
border-radius: var(--radius, 22px);
126+
background: var(--surface, #151c2c);
127+
box-shadow: 0 2.2cqh 5cqh color-mix(in srgb, var(--bg, #070a12) 72%, transparent);
128128
transform-origin: center;
129129
will-change: transform, filter, opacity;
130130
/* Both cards are the same placeholder material. Which one holds
131131
attention is said by blur, scale, and opacity, never by hue. */
132-
--fs-card-accent: color-mix(in srgb, var(--fg) 72%, var(--surface));
132+
--fs-card-accent: color-mix(in srgb, var(--fg, #f8fafc) 72%, var(--surface, #151c2c));
133133
}
134134
135135
.fs-card::before {
@@ -144,7 +144,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
144144
display: flex;
145145
align-items: center;
146146
justify-content: space-between;
147-
gap: var(--space-2);
147+
gap: var(--space-2, 16px);
148148
}
149149
150150
.fs-card-letter {
@@ -153,46 +153,46 @@ import { InstallCommand } from "/snippets/install-command.jsx";
153153
width: 5cqw;
154154
aspect-ratio: 1;
155155
border-radius: 50%;
156-
background: color-mix(in srgb, var(--fg) 13%, var(--surface));
157-
color: var(--fg);
158-
font-family: var(--font-mono);
156+
background: color-mix(in srgb, var(--fg, #f8fafc) 13%, var(--surface, #151c2c));
157+
color: var(--fg, #f8fafc);
158+
font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
159159
font-size: 2.3cqw;
160160
font-weight: 700;
161161
}
162162
163163
.fs-status {
164-
color: var(--muted);
165-
font-family: var(--font-mono);
164+
color: var(--muted, #94a3b8);
165+
font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
166166
font-size: 1.25cqw;
167167
letter-spacing: 0.12em;
168168
text-transform: uppercase;
169169
}
170170
171171
.fs-copy {
172172
display: grid;
173-
gap: var(--space-1);
173+
gap: var(--space-1, 8px);
174174
}
175175
176176
.fs-title {
177-
color: var(--fg);
178-
font-family: var(--font-display);
177+
color: var(--fg, #f8fafc);
178+
font-family: var(--font-display, Inter, system-ui, sans-serif);
179179
font-size: 3.4cqw;
180180
font-weight: 680;
181181
line-height: 1;
182182
letter-spacing: -0.025em;
183183
}
184184
185185
.fs-detail {
186-
color: var(--muted);
186+
color: var(--muted, #94a3b8);
187187
font-size: 1.45cqw;
188188
line-height: 1.35;
189189
}
190190
191191
.fs-meter {
192192
height: 1.1cqh;
193193
overflow: hidden;
194-
border-radius: var(--radius);
195-
background: color-mix(in srgb, var(--border) 60%, transparent);
194+
border-radius: var(--radius, 22px);
195+
background: color-mix(in srgb, var(--border, #34405a) 60%, transparent);
196196
}
197197
198198
.fs-meter-fill {

‎docs/catalog/components/oversized-cursor.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
3939
mount contract: this file is a HyperFrames sub-composition, loaded by a host via
4040
data-composition-src, never opened standalone. The runtime clones ONLY the
4141
<template> contents into the host slot (see
42-
skills/hyperframes-core/references/sub-compositions.md); everything outside
42+
skills/hyperframes/references/format.md); everything outside
4343
<template>, including this <head>, is discarded at render. The root is #root:
4444
elastic, no data-width/data-height declared here, it fills whatever box the host
4545
clip gives it (position:absolute; inset:0). See demo.html for the mount usage

‎docs/catalog/components/overwhelm-surround.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
6161
composition. A host loads it via data-composition-src; the runtime only
6262
clones <template> contents (everything outside <template>, including the
6363
entire <head>, is discarded on mount), see
64-
skills/hyperframes-core/references/sub-compositions.md. The root carries no
64+
skills/hyperframes/references/format.md. The root carries no
6565
data-width/data-height: it is elastic, sized off whatever box the host clip
6666
gives it (position:absolute; inset:0; container-type:size), so the effect
6767
reads correctly whether the host mounts it into a 960x540 slot or a full

‎docs/catalog/components/spring-pop.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
3333
3434
Compiled-from evidence: Video Primitives v1 build contract, Easing
3535
vocabulary (--ease-overshoot = GSAP back.out(1.7), taste rules 4 and 5),
36-
plus hyperframes-animation rules/spring-pop-entrance.md's playful
36+
plus hyperframes/animation rules/spring-pop-entrance.md's playful
3737
overshoot variation. This fills the gap left by spring-scale-in, whose
3838
power3.out curve never overshoots.
3939

‎docs/catalog/components/stagger-cascade.mdx‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ import { InstallCommand } from "/snippets/install-command.jsx";
107107
container-type: size;
108108
isolation: isolate;
109109
overflow: hidden;
110-
color: var(--fg);
111-
font-family: var(--font-body);
110+
color: var(--fg, #f4f7fb);
111+
font-family: var(--font-body, Inter, system-ui, sans-serif);
112112
}
113113
114114
.sc-clip {
@@ -117,7 +117,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
117117
display: grid;
118118
place-items: center;
119119
overflow: hidden;
120-
background: var(--bg);
120+
background: var(--bg, #090d16);
121121
}
122122
123123
.sc-grid {
@@ -136,10 +136,10 @@ import { InstallCommand } from "/snippets/install-command.jsx";
136136
display: grid;
137137
place-items: center;
138138
overflow: hidden;
139-
border: 0.16cqw solid var(--border);
139+
border: 0.16cqw solid var(--border, rgba(244, 247, 251, 0.14));
140140
border-radius: min(2.4cqw, 4cqh);
141-
background: color-mix(in srgb, var(--surface) 92%, var(--brand));
142-
color: var(--fg);
141+
background: color-mix(in srgb, var(--surface, #171e2d) 92%, var(--brand, #79a8ff));
142+
color: var(--fg, #f4f7fb);
143143
}
144144
145145
.sc-tile::after {
@@ -150,17 +150,17 @@ import { InstallCommand } from "/snippets/install-command.jsx";
150150
bottom: 12%;
151151
height: min(0.55cqw, 0.95cqh);
152152
border-radius: 50cqw;
153-
background: var(--brand);
153+
background: var(--brand, #79a8ff);
154154
opacity: 0.72;
155155
}
156156
157157
.sc-tile-index {
158158
display: block;
159-
font-family: var(--font-display);
159+
font-family: var(--font-display, Inter, system-ui, sans-serif);
160160
font-size: min(5cqw, 8cqh);
161161
font-weight: 700;
162162
line-height: 1;
163-
color: var(--fg);
163+
color: var(--fg, #f4f7fb);
164164
}
165165
</style>
166166

0 commit comments

Comments
 (0)