How to Give Claude Code a Design System
By @andymarrows · Updated · 7 min read
The short answer
Give Claude Code your design as a skill: a SKILL.md that tells it how to apply the design, a tokens.json with your colours, type, spacing and radii, and a rules file with the principles and the things to never do. Install it under .claude/skills, then ask Claude to apply it; it should audit your project, report the gap and change one area at a time, with your approval.
Why Claude Code's UI looks generic
Claude Code writes good components, but with no design to follow it falls back on safe defaults: a blue primary button, a grey card with a soft shadow, 16px body text and a rounded-lg on everything. Every app it builds ends up looking like every other app.
The fix isn't a longer prompt. A prompt is forgotten after a few turns and can't hold a full palette, a type scale and a spacing system. Claude needs the design written down somewhere it reads every time it touches the interface: a skill.
What a design skill should contain
A design system for an agent is more than a list of hex codes. Values without reasons get applied in the wrong places. A useful skill has:
- Tokens: the palette by role (background, surface, text, muted text, border, accent), the type scale with sizes, weights and line heights, the spacing scale, radii, borders and shadows.
- Rules: the principles that make the design what it is (one accent per screen, borders instead of shadows, type that tightens as it grows) and a Never list.
- Components: how buttons, inputs, cards and navigation are built, including hover and focus states.
- Layout and motion: the container width, section rhythm, breakpoints, transition durations and easing.
- A process: what to do before editing anything, so Claude doesn't rewrite your app in one go.
Install it as a Claude Code skill
Claude Code loads skills from .claude/skills in your project (or ~/.claude/skills for every project). Each skill is a folder with a SKILL.md at its root. The front matter tells Claude when to use it:
--- name: my-design description: Apply our design system to this project. Use when asked to restyle or build UI. --- # Our design system Never edit a file before step 5. Ask, don't assume. ...
Keep the data files (tokens.json, rules.md, components.md) next to SKILL.md and tell Claude to read each one only when its step needs it. That keeps its context small.
Make Claude ask before it changes anything
The most important part of the skill is the order of work. A good flow:
- 1Audit the project: where tokens, theme files and hard-coded colours live, and how styling works (Tailwind, CSS modules, CSS-in-JS).
- 2Read the project's own rules (CLAUDE.md, AGENTS.md, lint rules) and note what must not change.
- 3Report the gap for each area (tokens, components, layout, motion) as small, medium or large.
- 4Ask which areas to apply, and resolve any conflict with your project rules.
- 5Apply one area per commit, so any change can be reverted on its own.
- 6Check text contrast in both themes before finishing.
Get a design system from a site you admire
Writing all of this by hand takes days. Livery measures it from a live website instead: paste a link (or put livery.site/ in front of any address) and it renders the site at three screen sizes, measures its colours, type, spacing, components and motion, and writes the kit, SKILL.md and all, with the flow above built in.
Every kit page has a one-paste install prompt for Claude Code that downloads the kit, verifies its sha256 hash and installs it under .claude/skills. A kit describes the style; to work with the site's own files, the Livery extension copies the pages into Figma.
Questions
- Where do Claude Code skills go?
- In .claude/skills/<skill-name>/SKILL.md inside your project, or in ~/.claude/skills/<skill-name>/SKILL.md to use a skill in every project on your machine.
- Which SKILL.md fields are required?
- Claude Code's docs say all front matter fields are optional and only description is recommended, because Claude uses it to decide when to apply the skill.
- Is a skill better than putting the design in CLAUDE.md?
- For a full design system, yes. CLAUDE.md is loaded every session, so it suits a few lines of non-negotiables; a skill holds the tokens, rules and process and is read when UI work comes up.
- Can I use the same kit in Cursor or Codex?
- Yes. A Livery kit is plain files (SKILL.md, tokens.json, rules.md and notes), so any agent that reads files can follow it; Cursor uses a short project rule that points to the kit.
- Does Livery use AI to write the kit?
- No. Livery measures the rendered page and writes the kit from those measurements; no AI model is involved.
Sources
Try it on a site you love
Paste a link and get an installable design kit in about a minute. Free.
More guides
- State of Web Design: The Fonts, Colours and Themes Real Sites Use
- Why AI-Generated UI All Looks the Same (and How to Fix It)
- What Is an Agent Skill? SKILL.md Explained
- DESIGN.md vs SKILL.md vs tokens.json: What Should AI Agents Read?
- Best Design Skills for Claude Code, Cursor and Codex
- How to Extract Design Tokens from Any Website: 5 Methods Compared