hyperframes icon indicating copy to clipboard operation
hyperframes copied to clipboard

feat(skills): hand-crafted design.html for each template

Open vanceingalls opened this issue 6 months ago • 1 comments

Summary

Hand-crafted design.html for each of the 34 vendored templates (PR #971 below). Each design.html is a self-contained rendering of the template's design system — cover, manifesto, palette, typography, surface, motion, background shader section, do/don't guidelines, and a templates index page.

Used by the design picker (PR #974) to preview the chosen template's design language at full fidelity in the fine-tune phase.

Scope

  • 35 files (34 templates + 1 user-design scaffold)
  • ~30k lines, one commit per layer
  • All design.html files share the --primary / --secondary / --tertiary / --accent token contract

Why

design.html is the picker-facing design system for each template — the artifact reviewers will see in the picker preview. Splitting these out of the picker chrome PR (#974) means:

  • The 30k of design pages can be reviewed by visual sample (open 2-3 in a browser)
  • The picker code stays focused on the picker mechanics, not 34 individual designs

Token contract

Every design.html aliases its surface tokens off the four core role tokens:

  • --primary → light canvas (paper / cream / off-white per template)
  • --secondary → dark ink (body text, borders, outlines)
  • --tertiary → muted neutral (chrome, labels, dim text)
  • --accent → the signal color (one element worth remembering)

Templates that need additional palette tokens (e.g. editorial-forest's pink for the topic-card treatment) alias them inside :root and never embed raw hex values in component styles.

What to spot-check

  • Open skills/hyperframes/templates/presentations/<slug>/design.html directly in a browser for a few templates with different moods (mat, neo-grid-bold, editorial-forest, biennale-yellow, retro-windows)
  • Confirm the cover renders, the palette swatches are legible (each role has correct contrast against its surface), and the typography pairs make sense
  • The __PRIMARY__ / __SECONDARY__ / etc. tokens are substituted at picker render time — open design.html standalone and you'll see the literal sentinels; that's expected

Test plan

  • [ ] Each design.html opens without console errors (visual sample of 5 random templates)
  • [ ] Token substitution leaves no __X__ sentinels in rendered output once the picker injects values (covered by PR #974)
  • [ ] No new code paths added in this PR

Stack

Depends on #971. Followed by #973 (build scripts), #974 (picker chrome), #975 (CLI).

🤖 Generated with Claude Code

vanceingalls avatar May 19 '26 21:05 vanceingalls

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

vanceingalls avatar May 19 '26 21:05 vanceingalls