Skip to main content
Home/Recipes/Build a design system in Claude Code
AI Pipelines

22.Build a design system in Claude Code

DeveloperDesigner

Overview

Extract tokens and feed them into Claude Code. The agent scaffolds CSS variables, a Tailwind theme, and React primitives, all derived from exact brand values, not defaults.

Extract a live site's design tokens and export them as DESIGN.md. Feed the file into Claude Code and ask the agent to build a complete design system: CSS custom properties for the full token set, a Tailwind theme extension replacing generic defaults with brand-accurate values, and a set of React primitive components (Button, Input, Card, Badge) using those tokens throughout. Every value in the output comes from real, measured brand data: no Tailwind defaults, no memory, no approximation.

Generate DESIGN.md

Terminal
dembrandt brand.com --design-md
Claude Code prompt
# With DESIGN.md in context:
"Build a design token system using these extracted tokens as source of truth.
Output:
1. CSS custom properties (colors, type, spacing, radius, shadow)
2. Tailwind theme extension
3. Button, Input, Card, Badge primitives in React"
Output

CSS variables + Tailwind theme + React primitives. All values from the live brand.

Browse all

All recipes →

43 workflows