Force --f-disp/--f-head/--f-body/--f-sans with !important in the
injected override CSS. Typography changes now propagate to the entire
design page, not just slide cards.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Inject font-family !important overrides on headline/body classes in
.ds-slide-frame scoped CSS. Load picker's selected Google Fonts in
the iframe alongside template fonts. Typography changes now update
slide card text.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary font <link> tags were stripped and never injected. Now extracted
before stripping and injected into the design page <head> so slide
gallery thumbnails render with the correct template fonts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The hero iframe's --tp-* values were overwriting the correct NATIVE_PALETTES
values set by renderDesignIframe(). Now skips if _native is already set.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace template.html --tp-* reading with a static lookup of the
actual hex values each design page was authored with (extracted from
the original downloads). The --tp-* mapping was inverted for 26/34
templates, causing wrong colors in Template Default.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26/34 templates have --tp-primary as the dark color, but design pages
use --primary as light/text. Now detects luminance inversion and swaps
when setting Template Default palette, so sidebar matches the design page.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
renderDesignIframe() now reads --tp-primary/secondary/tertiary/accent
from template.html and sets PALETTES[0] as Template Default with the
template's native colors. Resets on template switch so each template
gets its own default palette.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Swatch backgrounds used template-specific aliases that don't update
with palette changes. Now injects !important overrides on nth-child(1-4)
to force primary/secondary/tertiary/accent hex values directly.
Works across all 34 templates regardless of swatch class names.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
--ink now var(--primary), --ink-dim/--ink-fade/--hairline use standard
color-mix() formulas. Fixes 8-bit-orbit, coral, monochrome,
sakura-chroma, stencil-tablet, studio, vellum. Palette changes now
propagate to text colors and derived shades.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Palette changes now propagate through alias chains to page chrome.
61 costume colors kept as hardcoded hex. Add rewire-design-aliases.py.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
block-frame, retro-windows, scatterbrain had aliases matching core
token hex values — now use var(--primary) etc instead of hardcoded hex.
Most templates have unique alias colors that don't map 1:1 to core tokens.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Alias overrides (--ink/--paper/--canvas/--cream) clobbered templates
that map these differently (8-bit-orbit uses --paper as dark canvas).
Now only forces --primary/--secondary/--tertiary/--accent with !important.
Templates' own alias mappings (var(--primary) etc) cascade naturally.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Single CSS block forces --primary/--secondary/--tertiary/--accent plus
common aliases (--ink/--paper/--canvas/--cream) and derived values
(--ink-dim/--ink-fade/--hairline) on every design page. Palette changes
now work across all 34 templates without per-template fixes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reduce shadow from 8px to 6px, add padding to palette grid,
add min-width:0 to swatches to prevent flex overflow.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Scale down from clamp(80px,17vw,300px) to clamp(48px,10vw,160px)
for the long name. Add word-break and overflow:hidden on palette grid.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add flex-direction:column!important to .ds-slide-frame .slide override
Fixes 16+ templates where forced display:flex without direction caused
horizontal layout instead of vertical stacking
- Remove 13 orphaned CSS color fragments (#111;} etc) from summaries
caused by html,body rule stripping in build-summaries.py
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4,333 {{placeholder}} tokens replaced with original text from
template.html across all 34 summary.html files. Slide gallery
thumbnails now show real content instead of {{headline}}/{{body}}/etc.
Add detokenize-summaries.py script for the automated replacement.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Step 1 now: check DESIGN.html first, if only design.md exists,
offer to generate a DESIGN.html showcase, if neither, fall back
to picker/presets/manual.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add references/design-showcase.md — comprehensive guide for converting
a design.md spec into a DESIGN.html showcase page. Covers character
extraction, 6-axis classification, font decision tree, color discipline,
surface vocabulary, cover headline scale, section-by-section recipe,
agent contract (ds-tokens, template-css, tmpl-source), voice guide,
failure modes, and the 3-test quality gate.
Wire into SKILL.md Step 1 as the design.md → DESIGN.html conversion path.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
drawImage runs once after 0.5s of shader warmup, then stops. Preview
canvas shows a static snapshot of the shader — no continuous loop,
no context churn on scroll. preserveDrawingBuffer restored for the
single drawImage call.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove bg-preview-canvas drawImage loop from iframe shader script.
The full-page shader background already shows the effect — the small
preview canvas was redundant and caused WebGL context churn on scroll.
Drop preserveDrawingBuffer (no longer needed without drawImage).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Save iframe scrollY before blob URL swap, restore on iframe load.
Config changes no longer jump the right panel to the top.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Re-add disabled class to tab-tune when navigating back to templates.
Guard showPhase('tune') from running without a selected template.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
← Templates button at top of sidebar navigates back to template grid.
Shows current template name next to it.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Clicking "1. Template" tab hides the design iframe so the template
grid is visible again without the iframe blocking it.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Visual preview now shows "Headline", "Body text goes here...",
"Label", "Text", "42" instead of raw {{headline}}/{{body}}/etc.
Export path keeps {{placeholders}} for agent consumption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace doc.open()/write()/close() with blob URL + iframe.src for
smooth transitions — old content stays visible until new page renders.
Increase debounce from 300ms to 500ms to reduce churn during slider
drags. Revoke previous blob URLs to prevent memory leaks.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bg._render was only created when "Configure" panel opened. Now
initialized with defaults in renderDesignIframe() so grain size,
scatter, blending values are always available for the shader script.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
HalftonePass now conditional on grain checkbox state. Grain radius,
scatter, blending values from sliders flow through to the iframe
shader script. BG_GRAIN token reflects actual toggle/slider state.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add debouncedIframeUpdate() (300ms) to makeSlider callback, grain
toggle, use-palette checkbox, and shader color inputs. Sidebar config
changes now re-render the design.html iframe after a short debounce.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All 34 templates now have bespoke hand-crafted design.html files
with 44 tokens each. No more generated designs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
sakura-chroma, monochrome, peoples-platform, grove now have full
44-token coverage matching the broadside contract. Each got importmap,
shader canvas, background section with all __BG_*/__SHADER_* tokens,
nav/section renumbering, and __ACCENT_LABEL__ in cover.
All 13 hand-crafted designs now fully tokenized.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All 44 tokens from the broadside contract now present in vellum,
8-bit-orbit, daisy-days, studio, soft-editorial, pink-script, coral.
Each got a new Background section with shader tokens, importmap,
canvas elements, and section renumbering. All CSS preserved.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace generated designs for vellum, 8-bit-orbit, daisy-days, studio,
soft-editorial, and pink-script with hand-crafted bespoke designs.
Palette hex values tokenized to __PRIMARY__/__SECONDARY__/__TERTIARY__/__ACCENT__
for picker substitution. Each design matches its template's visual character.
Total hand-crafted: 8 (block-frame, broadside, + these 6)
Generated: 26 remaining
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
renderDesignIframe() now fills __SHADER_VERTEX__, __SHADER_FRAGMENT__,
and __SHADER_SCRIPT__ with actual GLSL and Three.js renderer from
_sgShaders. Background preset changes in sidebar re-render the design
page with live animated shader + halftone grain + preview canvas.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add design.html iframe to the right panel of the existing picker.
When a template is selected, renderPreview() now renders the
template's design.html with live token replacement instead of the
old showcase panel. All sidebar controls (palette, type, corners,
density, depth, motion, background) update the design.html in
real-time via doc.write() to the iframe.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace click-to-cycle with persistent sidebar: palette swatches,
typography pairs, easing presets, corners, density, depth, shader
background — all as clickable options. Design page renders in an
iframe via doc.write() for clean CSS/script isolation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Scaffold for the new picker architecture where the picker page itself
renders as the design.html template. Template selection loads the
template's design.html with live token replacement. Sections are
clickable to cycle palettes, easings, and shader presets.
- Template grid overlay for selection
- Dynamic design.html loading with full token replacement
- Click-to-cycle on palette, motion, and background sections
- Export button downloads the resolved HTML
- Nav rail gets Template + Export buttons on load
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add build-design-templates.py: reads template CSS tokens and generates
a design.html page styled in that template's visual language
- Classifies each template by scheme (dark/light), border style
(heavy/hairline/subtle), corner radius, and font families
- Dark templates get dark canvas, accent cover, hairline borders, lowercase
- Heavy border templates get 4px solid, hard shadows, uppercase, tilted cards
- Template fonts flow through to page design (Playfair, Bricolage, etc.)
- Skips hand-crafted designs (block-frame, broadside)
- All 34 templates now produce bespoke DESIGN.html via showOutput()
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace CSS gradient mock with canvas that mirrors the full-page shader
- drawImage copies main WebGL canvas to preview canvas each frame
- Add preserveDrawingBuffer to main renderer for cross-browser drawImage
- Replace .bg-preview .mock with canvas#bg-preview-canvas in both templates
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>