Where you are

The spec document is polished; developers still write their own styles, and a theme change means global search-replace.

Why the usual approaches fail

  • the spec lives in docs only: code ignores it
  • arbitrary token names: no mapping
  • components drift from the spec: states missing

Three paths

PathGood forCost
Manualone-off1–2 hours
Prompt onlyquick fixunstable, needs retries
skillweekly repetitioninstall once, stable after
  1. Fix token naming and levels with design-system
  2. Turn tokens into CSS variables and components with ui-styling
  3. Build three frequent components first: button, input, card
  4. Accept each against the spec page

Acceptance criteria

  • colours and spacing come from tokens
  • three base components have full states
  • theme change in one place
  • design-system — Build a design system: token architecture, component specs and slide generation.
  • ui-styling — Build accessible interfaces with shadcn/ui: layout, states and interaction rules.