diff --git a/skills/hyperframes/references/design-picker.md b/skills/hyperframes/references/design-picker.md index 2a3b0abd49..7f4b766d51 100644 --- a/skills/hyperframes/references/design-picker.md +++ b/skills/hyperframes/references/design-picker.md @@ -278,7 +278,9 @@ These slides are VIDEO FRAMES, not website components. Each renders at 1920×108 The picker sidebar has 6 config controls: palette, typography, corners, density, depth, and shader background. ALL of them must visually affect BOTH the design.html page AND the slide thumbnails. This only works if every CSS value that should respond to config uses `var()` refs instead of hardcoded values. -**The rule:** NEVER write a hardcoded `border-radius`, `padding`, `gap`, `box-shadow`, or color hex in any design template CSS. Use the token vars. +**The rule:** NEVER write a hardcoded `border-radius`, `padding`, `gap`, `box-shadow`, or color hex in any design template CSS, inline styles, OR SVG attributes. Use the token vars. + +**This includes inline SVGs.** SVG `fill` and `stroke` attributes with hardcoded hex break palette switching. Use `currentColor` on SVG elements and set `color` via CSS vars on the parent, or use `fill="var(--tp-accent)"` directly (works in inline SVGs, not in `` src). **Files this applies to:** @@ -361,13 +363,14 @@ In **template.html** CSS (generated by build script): - `summary.html` slides inside design.html: scoped under `.ds-slide-frame` with `--cr`/`--pad`/`--gap`/`--shadow` set on the scope. CSS vars cascade into the slides. - `template.html` slides (Phase 1 cards + Phase 2 specimen): `updateSlideIframes()` rewrites the `:root` block inside the iframe's `