Commit Graph
998 Commits
Author SHA1 Message Date
Vance IngallsandClaude Opus 4.6 58f5c76fd8 fix(skills): don't overwrite crafted design/summary.html, load DESIGN.html in picker
- build-design-picker.py: skip copying design.html and summary.html
  if they already exist in the output directory. Agent-crafted files
  take priority over generic templates.
- design-picker.html: renderDesignIframe() checks for DESIGN.html at
  project root when user-design is selected. Hero and specimen iframes
  also prefer DESIGN.html over templates/user-design/template.html.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 17:11:10 -07:00
Vance IngallsandClaude Opus 4.6 7a052b3811 feat(skills): template extraction guide for DESIGN.html
New reference: design-html-templates.md — guides agents to extract
slide template CSS separately from page chrome CSS. Prevents agents
from building compositions using the showcase page styles instead of
the actual template styles.

Updated design-html.md workflow to reference template extraction.
Updated SKILL.md Step 1 to trigger template extraction when
DESIGN.html contains a template gallery.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 16:44:07 -07:00
Vance IngallsandClaude Opus 4.6 aa04f2e892 feat(skills): anti-convergence cover design, font resolution
- Cover HARD-GATE: system feel, not product story
- Anti-convergence: never same cover structure twice
- Design thinking from frontend-design skill
- Font resolution: local fonts/ → Google Fonts → substitute
- Updated SKILL.md and design-picker.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 15:07:12 -07:00
Vance IngallsandClaude Opus 4.6 f362de0629 feat(skills): design picker CSS token contract and design.md pipeline
- Fix CSS scoping regex to skip decimal values (.9, .5rem)
- Add <base href> for path resolution from .hyperframes/
- Fix palette field names, DENSITIES, __SHADOW__ token mapping
- Add updateSlideIframes() for live config on template slides
- Wire design.html/summary.html to var(--cr/--pad/--gap/--shadow)
- Add .tp-card.provided CSS + DESIGN_MD auto-advance
- New: build-design-picker.py, lint-design-html.py, user-design templates
- Skill: agent-crafted DESIGN.html pipeline, CSS token hard-gate

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 14:51:37 -07:00
Vance IngallsandClaude Opus 4.6 d5bd20eb44 feat(skills): shader background shows through cover section
When a shader preset is selected, html/body/cover backgrounds go
transparent so the full-page shader canvas shows through the title
area. bg-veil opacity reduced to 40% for better shader visibility.
No shader selected = opaque backgrounds as before.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 09:55:35 -07:00
Vance IngallsandClaude Opus 4.6 8cf6a6b055 feat(skills): native font defaults per template, same pattern as palettes
Add NATIVE_FONTS lookup with display/body font + weight for all 34
templates. TYPEPAIRS[0] updates to Template Default on template pick.
Disable updateDefaultTypeFromIframe to prevent overwrites. Load native
Google Fonts on template selection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 00:48:24 -07:00
Vance IngallsandClaude Opus 4.6 fde8a096b6 fix(skills): override font CSS vars in picker-override block
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>
2026-05-18 00:44:47 -07:00
Vance IngallsandClaude Opus 4.6 a02a2ecb1b fix(skills): force picker font choices onto slide gallery thumbnails
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>
2026-05-18 00:42:38 -07:00
Vance IngallsandClaude Opus 4.6 011e4fc1d6 fix(skills): inject template font links into design iframe for slide cards
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>
2026-05-18 00:40:15 -07:00
Vance IngallsandClaude Opus 4.6 8a6a886b74 fix(skills): prevent updateDefaultPaletteFromIframe from overwriting native palette
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>
2026-05-18 00:35:56 -07:00
Vance IngallsandClaude Opus 4.6 b1939b8b01 fix(skills): use authored native palettes for template default
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>
2026-05-18 00:26:16 -07:00
Vance IngallsandClaude Opus 4.6 fe32cbc285 fix(skills): swap primary/secondary when template uses inverted convention
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>
2026-05-18 00:19:52 -07:00
Vance IngallsandClaude Opus 4.6 ecb508f851 fix(skills): read native palette from template.html for Template Default
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>
2026-05-18 00:15:50 -07:00
Vance IngallsandClaude Opus 4.6 c62ea0293a fix(skills): force swatch backgrounds to core palette colors via nth-child
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>
2026-05-18 00:12:48 -07:00
Vance IngallsandClaude Opus 4.6 39ed174838 fix(skills): force --ink and derived aliases to var() in 7 templates
--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>
2026-05-18 00:10:37 -07:00
Vance IngallsandClaude Opus 4.6 4f4730a2c4 feat(skills): rewire 73 color aliases to var() refs across 24 templates
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>
2026-05-18 00:08:25 -07:00
Vance IngallsandClaude Opus 4.6 a994e500b7 fix(skills): link 3 template aliases to core tokens via var()
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>
2026-05-17 23:52:56 -07:00
Vance IngallsandClaude Opus 4.6 c38842af47 fix(skills): remove alias forcing from palette override, keep core tokens only
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>
2026-05-17 23:45:07 -07:00
Vance IngallsandClaude Opus 4.6 f913c6ceaf feat(skills): universal palette override injected into every design iframe
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>
2026-05-17 23:43:12 -07:00
Vance IngallsandClaude Opus 4.6 3ac90ef366 fix(skills): peoples-platform palette swatch overflow
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>
2026-05-17 23:40:43 -07:00
Vance IngallsandClaude Opus 4.6 30f2e6b6f0 fix(skills): reduce peoples-platform cover headline to prevent overflow
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>
2026-05-17 23:39:01 -07:00
Vance IngallsandClaude Opus 4.6 790aac54aa fix(skills): add flex-direction:column to forced slide display, clean CSS fragments
- 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>
2026-05-17 18:44:43 -07:00
Vance IngallsandClaude Opus 4.6 13b95ce6b4 feat(skills): replace placeholder tokens with original text in all summaries
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>
2026-05-17 18:24:14 -07:00
Vance IngallsandClaude Opus 4.6 43bbfe044d feat(skills): design.html-first workflow with design.md conversion prompt
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>
2026-05-17 18:13:53 -07:00
Vance IngallsandClaude Opus 4.6 48d8b7b047 docs(skills): update design-showcase.md with revised guide
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 17:35:50 -07:00
Vance IngallsandClaude Opus 4.6 096b9ee02d docs(skills): add design showcase authoring guide
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>
2026-05-17 16:38:01 -07:00
Vance IngallsandClaude Opus 4.6 3b6f232ada docs(skills): add DESIGN.html parsing guide for composition agents
- Update SKILL.md Step 1 to check for DESIGN.html before design.md
- Add references/design-html.md with full parsing guide: palette
  extraction, typography, surface tokens, motion/easing, shader
  background (config + GLSL), guidelines, slide skeleton usage,
  theme classes, and composition workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 16:29:42 -07:00
Vance IngallsandClaude Opus 4.6 94549682f4 fix(skills): restore continuous shader animation in preview canvas
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 16:24:24 -07:00
Vance IngallsandClaude Opus 4.6 94666aefa3 fix(skills): restore shader preview as single snapshot, not continuous loop
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>
2026-05-17 16:22:16 -07:00
Vance IngallsandClaude Opus 4.6 f3ec992a36 perf(skills): remove preview canvas drawImage, drop preserveDrawingBuffer
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>
2026-05-17 16:17:17 -07:00
Vance IngallsandClaude Opus 4.6 1666397452 fix(skills): preserve scroll position on config changes
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>
2026-05-17 16:12:28 -07:00
Vance IngallsandClaude Opus 4.6 0ce3bff91c fix(skills): remove duplicate back button from sidebar
Keep only the header phase tab for template navigation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 16:11:29 -07:00
Vance IngallsandClaude Opus 4.6 4586e6a0b7 fix(skills): disable fine-tune tab when no template selected
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>
2026-05-17 16:02:28 -07:00
Vance IngallsandClaude Opus 4.6 9d45fef393 feat(skills): add back button to sidebar top in fine-tune phase
← 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>
2026-05-17 15:59:22 -07:00
Vance IngallsandClaude Opus 4.6 b6753402f9 fix(skills): hide design iframe when navigating back to template page
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>
2026-05-17 15:50:14 -07:00
Vance IngallsandClaude Opus 4.6 b8902ad996 fix(skills): replace {{placeholder}} tokens with sample text in slide gallery
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>
2026-05-17 15:47:21 -07:00
Vance IngallsandClaude Opus 4.6 67cfc6d028 perf(skills): blob URL for iframe updates, increase debounce to 500ms
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>
2026-05-17 15:36:44 -07:00
Vance IngallsandClaude Opus 4.6 e91bcfe403 fix(skills): ensure bg._render initialized before grain slider reads
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>
2026-05-17 15:29:57 -07:00
Vance IngallsandClaude Opus 4.6 3d32bacae0 fix(skills): grain toggle and slider values flow to design iframe
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>
2026-05-17 15:25:56 -07:00
Vance IngallsandClaude Opus 4.6 af4803fb12 fix(skills): shader sliders, grain, and color changes update design iframe
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>
2026-05-17 15:20:31 -07:00
Vance IngallsandClaude Opus 4.6 a029fd4efb feat(skills): final 4 hand-crafted design.html templates (34 / 34)
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>
2026-05-17 15:14:06 -07:00
Vance IngallsandClaude Opus 4.6 93248da98d fix(skills): tokenize retro-windows, fix block-frame surface tokens
- retro-windows: full tokenization (was raw baked HTML)
- block-frame: replace __BORDER__/__SHADOW__ with __GAP__/__ELEVATION__,
  deduplicate corner radius row

30 hand-crafted / 34 total. 4 remaining use generated designs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 15:01:14 -07:00
Vance IngallsandClaude Opus 4.6 fefeb378cb feat(skills): hand-crafted raw-grid design.html (29 / 34)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 14:48:07 -07:00
Vance IngallsandClaude Opus 4.6 ba10baba31 feat(skills): 10 more hand-crafted design.html templates (28 total)
Add bespoke designs for retro-zine, cartesian, bold-poster,
blue-professional, creative-mode, scatterbrain, playful, mat,
editorial-tri-tone, neo-grid-bold. All 44 tokens, background
sections, shader infrastructure included.

Hand-crafted: 28 / 34. Generated: 6 remaining.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 14:37:54 -07:00
Vance IngallsandClaude Opus 4.6 024361e253 feat(skills): 5 more hand-crafted design.html templates (18 total)
Add bespoke designs for capsule, signal, biennale-yellow, pin-and-paper,
stencil-tablet. All fully tokenized with 44 tokens matching broadside
contract. Background sections, shader infrastructure, section
renumbering all included.

Hand-crafted: 18 / 34. Generated: 16 remaining.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 14:15:37 -07:00
Vance IngallsandClaude Opus 4.6 b94d288601 feat(skills): add background sections to remaining 4 hand-crafted designs
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>
2026-05-17 14:03:43 -07:00
Vance IngallsandClaude Opus 4.6 559ff53bbe feat(skills): fully tokenize 7 hand-crafted design.html templates
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>
2026-05-17 13:56:51 -07:00
Vance IngallsandClaude Opus 4.6 cd7cc648d6 feat(skills): 5 more hand-crafted design.html templates
Add bespoke designs for coral, sakura-chroma, monochrome,
peoples-platform, grove. Palette tokenized. Total hand-crafted: 13.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 13:33:39 -07:00
Vance IngallsandClaude Opus 4.6 1ee518eda9 feat(skills): 6 hand-crafted design.html templates with tokenized palettes
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>
2026-05-17 13:19:37 -07:00
Vance IngallsandClaude Opus 4.6 ce6c1a86d9 fix(skills): wire shader GLSL + renderer into design.html iframe preview
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>
2026-05-17 12:48:16 -07:00