Design Mode is now a fable-Design-style prototype studio, verified live end-to-end and on the PR with real screenshots.
What the Design view is now
Home replaces the old form-and-tabs page. It leads with a New prototype panel — project name, a visual Wireframe / High fidelity picker, optional sections — plus a "Set up design system" CTA and a Recent designs grid of live thumbnails. Creating a prototype scaffolds design/mockups/<slug>/index.html and drops you straight into the editor.
The prototype editor is the Tweaks experience from your first screenshot:
- Device preview — Desktop / Tablet (768px) / Mobile (390px) frame widths
- Dark mode switch
- Theme — six named palette swatches (Stone · Clay · Wine · Bone · Nature · Ink), each with a light and dark face; the swatch chips themselves flip when dark mode is on
- Typography — Heading size (70–140%) and Body size (80–125%) sliders
- Sections — show/hide toggles parsed from the document's
<section> blocks
- Layout density — Comfy / Compact
- Export downloads the tweaked HTML, Save bakes the tweaks back into the file, and "Ask the agent to refine…" seeds Chat with the file path plus a parity-check instruction — connecting the visual tool to the agent-side
design_studio engine.
Everything renders in a script-blocked sandboxed iframe, tweaks compose as a single injected style block, and a tweak state is shareable as a deep link (?edit=…&tw=dark,palette:ink,device:mobile,h:115).
Where the substance lives
The palettes and scaffolds are core, tested code (design/prototype.ts, 8 new tests): every palette's text/surface pair is WCAG-AA in both light and dark faces — locked by real contrast math, not eyeballing — and the wireframe fidelity is deliberately opinion-free (grayscale dashed slots) so structure conversations stay structural. The server grew two confined endpoints (POST /api/design/prototype, POST /api/design/mockup/save — design/mockups/*.html only, 2MB cap; I verified the traversal rejection live).
Verified
Created a high-fidelity prototype and a wireframe through the real API, opened them in the editor, applied Ink + dark + mobile + 115% headings via deep link, saved, and screenshotted each state — those four captures (home, editor, tweaked, wireframe) are now in PR #9. Gate: 2,502 core + 32 app tests, 0 fail, typecheck clean, smoke 11/11, demo files cleaned out of the repo.
One honest note: section toggles and density work best on token-based scaffolds (ours use data-tw handles); for arbitrary hand-written mockups they fall back to nth-of-type targeting and may no-op — the panel says so when no sections are found.