Skip to content

feat: theme studio: /theme/ as a full editor (presets, per-token colours, fonts, shape, live kit preview, share, apply to site, AI-free generation) #560

Closed

Description

@mvilacad

/theme/ is poor: one long radio list, one settings card, a code panel that prints defineTheme({}). The bar is tweakcn.

Build a Theme Studio on the real engine (ThemeOptions, presetContrastIssues, colorScheme.setTokens), with lib components only:

  • Presets gallery with swatches (built-ins + design styles), search, randomize, undo/redo, reset.
  • Per-token colour roles per scheme (brand, surfaces, text, outlines, semantic) with an OKLCH/hex field, swatch and inline contrast readout (new lib ColorField).
  • Fonts (curated pairs, live Google Fonts load), radius, density, type scale, border, shadow/elevation, motion, noise, paper.
  • Live preview of real screens (dashboard, settings, auth, pricing, forms, overlays) at 390/768/1280 and light/dark side by side.
  • Code export (theme.ts + CSS vars), share URL that round-trips, "Export for AI" prompt.
  • "Apply to site": visitor-only localStorage key, never touches the published default or build output; "Reset to sketchbook".
  • Text prompt to theme and image/logo to palette, client side (OKLCH quantization), no API key.
  • Mobile: controls in a Sheet; rAF-batched token writes; keyboard + axe clean.

Activity

  1. added
    enhancementNew feature or request
    in progressSomeone is working on it (see the linked draft PR)
    on Oct 25, 2026
  2. self-assigned this
    on Oct 25, 2026
  3. mvilacad commented on Oct 25, 2026

    @mvilacad
    ContributorAuthor

    Working on this in #562 (draft). Branch feat/560-feat-theme-studio-theme-as-a. Regression test first, then the fix.

  4. 6 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestin progressSomeone is working on it (see the linked draft PR)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions