Interactive theme builder in the documentation
The docs host a visual builder for editing tokens, previewing a full grid in every state and exporting CSS, JSON tokens or a Tailwind preset snippet. It runs fully client-side with no account or telemetry.
Planned. This page shows the specification from issue #205. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A builder with a base theme selector, token groups (color, typography, spacing, density, borders) and a live preview grid with all states visible.
Expected behavior
Edits update the preview instantly. A contrast panel flags failing pairs, and exported CSS pasted into a blank page reproduces the preview exactly.
Planned API surface
token schema (JSON)exported CSS custom property blockexport formats (CSS, JSON, Tailwind preset)importTheme (docs tool)Acceptance criteria
- The builder makes no network requests after load and has no analytics (pending)
- Exported CSS reproduces the preview pixel-for-pixel in the visual test (pending)
- The contrast checker reports every foreground/background token pair with its AA/AAA status (pending)
- Importing a previously exported file restores all values (pending)
- The share URL encodes only changed tokens (pending)