Three frontend skills are on sale now. Pay once, download straight away with your licence key.

See the catalogue
AI Skill Up
Browse skills

Give Claude Code your design system as a skill, not a paragraph in a prompt

A design system Claude can follow is four files: rules, tokens, component recipes and what is off limits. What goes in each, and the description that loads it.

Most teams already have a design system. It lives in a Figma file, a style guide and one senior designer's head, and none of those are places Claude reads. So every generated screen starts from the generic default and someone spends an afternoon pulling it back on brand. The system needs to be where the model looks.

The shape: four files in one folder

your-design-skill/
  SKILL.md                 the hard rules, and the description that loads it
  references/tokens.css    every value, named
  references/components.md recipes for the pieces every screen uses
  README.md                install, requirements, what to try

Keeping tokens and recipes in references/ matters. The rules in SKILL.md are read whenever the skill is active; the references are opened only when Claude needs them, so a long token file does not cost context on every turn.

SKILL.md: ten rules, not a style guide

Resist pasting the whole brand book. What Claude needs is the short list of decisions it would otherwise get wrong, stated so they can be checked. Good rules are specific and falsifiable:

  • The accent appears at most twice per screen, and only on actions.
  • Every number is monospace with tabular figures.
  • Borders are hairlines; no shadow except to show one surface above another.
  • Headlines use the display face at weight 400; nothing under 32px uses it.
  • Green and red appear only on figures that moved, never on buttons.

Add a short section called what this look is not. It is the cheapest way to stop a request drifting into the generic default, because it names the default and rules it out.

tokens.css: names that carry meaning

Write the palette as named values, and name them by job rather than by colour where you can. A token called --accent tells Claude where it goes; a token called --lime-400 only tells it what it looks like. The best token files have both: a raw ramp at the top, and semantic tokens that components are required to use.

:root {
  --lime-400: #d2f205;   /* raw ramp */
  --ink-900: #0e0f0d;
  --accent-fill: var(--lime-400);   /* what components use */
  --accent-fill-ink: var(--ink-900);
}

components.md: recipes for the five pieces that matter

You do not need a full component library. Write down the pieces nearly every screen uses, in working code, with the values filled in: the primary and secondary button, the card, the header, the hero and how a number is shown. If a piece has a trap, such as a stacking context that breaks a glow, say so next to the recipe.

The description decides whether any of it is used

A skill Claude never loads does nothing, and loading is decided by one line: the description in the frontmatter. Name the requests people actually make and the look itself. The same rule as any other skill applies, covered in why a skill does not fire.

description: Builds or restyles UI in an editorial style: paper and coal surfaces,
  a serif display face, mono numbers, one flat lime accent. Use when asked for a
  page that looks credible rather than techy, a leaderboard, or less generic UI.

Or start from one that already exists

If you would rather begin from a finished system than write one, each of ours is exactly this structure, written from a live site you can open and compare: Glass Instrument UI, macOS Native Dark UI and Editorial Ledger UI. Pair any of them with a usability pass, as described in using ui-ux-pro-max with a design skill.

Questions

What files does a design system skill need?

A SKILL.md with the hard rules and a description that triggers it, a tokens file with every colour, type size, radius and shadow as a named value, and a components file with recipes for the handful of pieces every screen uses. A README for people is worth adding.

Should the tokens be CSS, Tailwind or JSON?

Whatever your project already uses. CSS custom properties are the most portable, because every framework can read them and Claude can translate them into a Tailwind theme when asked. The important part is that each value has a name and a meaning.

How do I make the skill load only for UI work?

Through the description. Name the kinds of request it covers, such as building a page, restyling a screen or making something look less generic, and name the look itself. A description that only says design helper will not match what people type.

Keep reading

DesignUsing ui-ux-pro-max with your own design skill: who decides whatui-ux-pro-max is very good at usability and very broad on style. Run it next to a design skill and you get both, if you decide in advance which one owns the look.DesignWhy AI-generated interfaces all look the same, and how to make yours notAsk any model for a landing page and you get the same purple gradient, three cards and rounded everything. Where that look comes from, and what stops it.TriggersWhy your Claude Code skill does not fire, and how to tellA skill that works when you name it and ignores you otherwise has a description problem, not a logic problem. How to find out which, in about ten minutes.

Or skip the afternoonand drop one in.

Every skill in the catalogue is a folder you drop into your skills directory. Each ships with its design rules, worked examples and a troubleshooting table, and downloads the moment you pay.