feat(create): rebuild builder as a workspace studio#287
Conversation
Replace the /create left panel (the drill-down CustomizerPanel) with a new workspace-based studio, and make several builder axes genuinely live in the preview. Studio: - Rail of workspaces (Start, Color, Typography, Shape, Spacing, Surface, Motion, Icons, Interaction, Components) over the live ?preset= channel. - Start: one-color-in magic seed, curated vibes, foundations-at-a-glance. - Cmd-K command palette jumps to any control, with deep-link scroll + highlight. - Color: simple/advanced, seeds, algorithm, gray strategy, status families, palettes-as-foundations, knobs, ramps + WCAG contrast, chart colors, and hue-derived harmonies. - Components: searchable list with synced-group awareness + the per-component param editor. - Export dock (CLI + v0) and the code-style modal carried over. Live preview bridge (preview/bridge.tsx): - Maps --ds-* builder tokens to real CSS inside the preview iframe so fonts (with on-demand Google Fonts loading), border weight, motion (on/off + duration) and style family (flat/soft/3D/glass) actually render. - Axes that don't repaint reliably in this pipeline (semantic color overrides, spacing scale, icon stroke) stay token controls captured for export and resolved by the publisher; the honesty dots reflect what is live today. UX: - Per-workspace "modified" dots on the rail; scoped per-section reset. - Workspace enter transitions; tactile vibe-card press feedback. Notes for reviewer: - UI-only experiment; no registry source touched (no build:registry needed). - ?lab=true still renders the prior panel-lab exploration, untouched. - pnpm typecheck and pnpm check pass; verified live in the browser preview.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_fde0f474-1f39-40ee-8d12-95fa88d317ff) |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_57c0d48b-9b39-4837-8e9d-3e50ec9f2a4c) |
Summary
Replaces the
/createleft panel (the drill-downCustomizerPanel) with a new workspace studio, and makes several builder axes genuinely live in the preview. UI-only experiment — no registry source touched.Studio
?preset=channel.Live preview bridge
preview/bridge.tsxmaps--ds-*builder tokens to real CSS inside the preview iframe. Verified live by measuring real elements:Radius, density and the full color recipe were already live through the provider. Axes that don't repaint reliably in this pipeline (semantic color overrides, spacing scale, icon stroke) stay token controls captured for export and resolved by the publisher; the honesty dots reflect what's live today.
UX
Reviewer notes
build:registryneeded.?lab=truestill renders the prior panel-lab exploration, untouched.pnpm typecheckandpnpm checkpass; verified live in the browser preview with no console errors.Note
Medium Risk
Large
/createUI refactor and preview-only global CSS (!importanton shadows/motion) could cause subtle preview regressions, but changes stay in www create modules with no registry or auth impact.Overview
Replaces the drill-down
CustomizerPanelon/createwith a workspace studio: a left rail (Start, Color, Typography, Shape, Spacing, Surface, Motion, Icons, Interaction, Components) and a wider panel that still writes the same?preset=channel.StudioTopBarreplaces the global site header on this route (layout skipsHeaderwhenpathname === '/create'), and hoists undo, reset, surprise-me, editable system name, and ⌘K search.Start adds brand seed controls, curated vibes, and glance tiles that jump into other workspaces. Color expands into simple/advanced modes, harmonies, and richer ramp tooling; foundation workspaces consolidate typography through interaction controls with LiveDot honesty for preview wiring. ⌘K command palette deep-links to anchored controls (scroll + highlight). Per-workspace dirty dots and scoped reset land in
divergence.preview/bridge.tsxis new: it injects preview-only CSS (and Google Fonts) so many--ds-*tokens (fonts, base size, letter spacing, border width, motion, style family / shadows / glass blur) visibly affect the iframe; the preview route mountsPreviewBridgeandbridgeAttrs. Export footer and code options are unchanged, carried inStudioFooter.?lab=truestill showsLabExperienceinside the same provider/chrome.Reviewed by Cursor Bugbot for commit 38eaaa0. Bugbot is set up for automated code reviews on this repo. Configure here.