Concepts

Docs

Five ideas carry the whole app: tokens in three tiers, two themes, a project, a recipe, and the score. Every page after this one assumes them.

How to use it

You meet the tiers as the three tabs of the workbench editor, Design, Semantic and Component. Edit a design token to change a value; edit a semantic token to point a role at a different value; edit a component token to change what one component reads. The preview and the exports follow whichever you touch.

Light and dark are two columns on every semantic token. A design token has one value for both; a component token points at one semantic, which already carries both, or straight at a design token.

A project is one design system: its tokens, its preview page, its corner strategy and its project token for the exports. The wizard creates one from a recipe.

How it works

A token has a tier, a category, a name, and either a raw value or references.

Tier Holds Light ref Dark ref Component
Design a raw value no no no
Semantic nothing a design token a design token no
Component nothing a semantic or design token no required

The nine categories are color, spacing, radius, typography, shadow, zIndex, border, gradient and blur. A gradient design token holds only a direction (135deg); a gradient's colours are colour semantics named after it (primary-gradient-from and primary-gradient-to), and a project can hold one gradient in each of three roles: primary, accent and the page wash. A blur design token holds a blur radius (24px) for glass surfaces; glass itself is a group of semantics held whole or not at all (glass, glass-strong and glass-border, translucent colours, and glass-blur), as is the page backdrop (backdrop-1 to backdrop-3, the colours of the soft blobs behind a page). A reference stays inside its category: a semantic colour points at a design colour, never at a radius. A name is letters, digits, dots, hyphens and underscores, and a dotted name carries meaning in typography, where family.sans, weight.bold and leading.tight say which kind of font value the token holds.

Examples, in the form the exports use:

design.color.brand.600      = oklch(0.55 0.2 260)
semantic.primary            -> design.color.brand.600 | design.color.brand.400
component.button.bg         -> semantic.primary

Semantic and component tokens share one CSS namespace. A semantic card-foreground becomes --card-foreground; a component token foreground under card would become the same variable, so the app refuses it.

Colour ramps have nineteen shades: the eleven familiar steps from 50 to 950 and a half step between each pair from 150 to 850, so a repair that needs "the lightest shade that still passes" has a rung to land on.

A recipe is the compact form the AI works in: one hue and chroma per ramp, a font pair, a radius, a shadow level and nineteen semantic roles. The app expands a recipe into the full token set, which for a new project is 421 tokens: every design value, every semantic role in both themes, and a slot for every component the kit paints.

The score is one number from 0 to 100 over six checks: contrast on the required pairs, corners following the strategy, palette size, type and depth, tokenised component slots, and the dark theme. A check with nothing to measure drops out and the rest reweight. The standard token set scores 100.