Skip to main content
AI Pipelines

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 and a set of React primitive components (Button, Input, Card, Badge) using those tokens throughout. The Tailwind theme does not need the agent at all — `--tailwind` writes a v4 @theme file from the same extraction, so generate it directly and let the agent build on top of it. Every value in the output comes from real, measured brand data: no Tailwind defaults, no memory, no approximation.

Generate DESIGN.md

Terminal
dembrandt example.com --design-md

Generate the Tailwind theme

Terminal
dembrandt example.com --tailwind
Claude Code prompt
# With DESIGN.md and theme.css 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. Button, Input, Card, Badge primitives in React, using the
@theme variables from theme.css"
Output

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

Browse all

All recipes →

60 workflows