Recipe shape

Docs

A recipe is a whole design system in a few hundred characters: colour ramps as hue and chroma, nineteen semantic roles as references into those ramps, a radius, a font pair and a shadow level. The app expands it into the full token set. The wizard writes one, and an agent's create_design_system tool posts one.

Shape

{
  "projectName": "Acme",
  "ramps": { "neutral": { "hue": 286, "chroma": 0.01 }, "brand": { "hue": 260, "chroma": 0.2 } },
  "semantics": { "primary": { "light": "brand.600", "dark": "brand.400" } },
  "radius": "md",
  "fonts": { "sans": "geometric", "mono": "code" },
  "shadowLevel": "normal",
  "shadowColor": "brand.900"
}

Every ramp role and every semantic is required; shadowColor is optional (black means untinted). A font may also be a Google font, written as { "family": "Inter", "generic": "sans-serif" }; a family Google does not carry falls back to system.

Ramp roles

neutral, brand, accent, destructive, success, warning

A ramp on the wire is { "hue", "chroma" }: hue in degrees, chroma the peak (at shade 600). The app builds the nineteen shades from it.

Shades

50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950

A reference is <role>.<shade>, or white or black.

Semantic roles

Each takes a { "light", "dark" } pair of references.

background, foreground, card, card-foreground, popover, popover-foreground, primary, primary-foreground, secondary, secondary-foreground, muted, muted-foreground, accent, accent-foreground, destructive, destructive-foreground, border, input, ring

Radius

none, xs, sm, md, lg, xl, 2xl, 3xl, 4xl, full

Shadow levels

flat, subtle, crisp, normal, diffuse, dramatic

Fonts

Sans: system, neo-grotesque, humanist, geometric, classical, rounded, industrial, transitional-serif, old-style-serif, slab-serif, antique, didone, handwritten.

Mono: system-mono, code, typewriter.