Blog post

Your design system is now your AI's onboarding doc. Is it ready?

Author

Michal Bryniarski

Category

Design

Date

Nov 25, 2026

When 1Password's design system team first pointed a general-purpose coding agent at its tickets, the pull requests often compiled and passed tests, and reviewers still had to rework them. The agent put tokens at the wrong tier, used raw HTML where the system had its own primitives, and chose components that looked right on their own but were wrong for the job. As the team wrote in May 2026, "without design system-specific context, it filled knowledge gaps with confident-sounding guesses."

If your team builds UI with Cursor, Claude Code, v0 or Lovable, you've probably reviewed pull requests like that: a grey that isn't in the palette, a hand-built modal next to the real one, a page that looks like every other AI-built dashboard. A new designer or developer learns your system from docs, pairing and review comments. An agent starts every session knowing only what it can read. Your design system has become its onboarding doc, and most were written for people.

How often it happens

In its State of AI in Design Systems 2026 report, zeroheight surveyed 123 practitioners, "mostly in-house product design leaders at mid-to-large technology companies." 82% of their teams use AI in some form, and 48% already run an MCP server, which gives agents a standard way to query a tool. Yet only 17% rate their docs as "very AI-ready", and 59% report UI that bypasses the design system. zeroheight sells design system documentation and the sample is small, so treat these as one signal.

In February 2026, a developer filed a GitHub issue against Claude Code. Their CLAUDE.md file said "NEVER hardcode colors, sizes, or style values. ALWAYS use CSS variables or global styles." Claude "hardcoded Tailwind lime-400/lime-500 classes across 15+ files" anyway. In April 2026, a UX director asked on the Cursor forum for a better way to give agents design context, because "every conversation requires re-explaining tokens, component patterns, spacing conventions, and brand guidelines".

Bar chart from zeroheight's State of AI in Design Systems 2026, 123 practitioners: 82% of teams use AI, 59% see UI bypassing the design system, 48% run an MCP server, and 17% rate their docs as very AI-ready

Why agents drift off-brand

Three gaps come up again and again, and none of them is a careless agent.

When the agent can't see your choices, it reaches for the most common ones. Vercel says v0 uses shadcn/ui "as part of its default stack when it generates React code", and shadcn/ui is built on Tailwind. That's one reason so much AI-built UI looks alike. In February 2026 a Hacker News commenter summed up the result: "Everything looks like the same beige SaaS dashboard: rounded cards, random gradient, Tailwind presets copy-pasted until entropy." shadcn/ui is a reasonable base if you theme it with your own tokens; left unthemed, it looks like everyone else's.

The system lives where agents can't read it. Atlassian's design system team found its guidance spread across documentation sites, Confluence, Figma, Looms and code packages, some of it relying on "visual information which can't be read by code". Agents working from that mix, the team wrote, "find outdated patterns, miss accessibility requirements, or invent components that don't exist in our system."

Components nobody documented get guessed. In a test at BILL, an agent asked for a "radio tile group" shipped standard radio buttons, with hex colours and pixel sizes typed straight into the code instead of tokens. BILL's UI software architect, David Cai, wrote in August 2026: "Each choice is defensible on its own. None of it belongs to your design system."

Context agents can read

An agent-ready design system holds the same knowledge as a good one for people, in a form a tool can query. It usually has five layers.

Layer

What the agent gets

Where it lives

Tokens

Named values and when to use them

A token file in W3C format

Component docs

Props, variants and usage

Storybook manifest and MCP

Figma Code Connect

Your component for each design

Figma's MCP server

Design-system MCP

One place to query everything

Your own server

Skills

Steps, conventions, banned patterns

Skill files, AGENTS.md

The W3C Design Tokens Community Group published the first stable version of its format, 2025.10, in October 2025. Style Dictionary, Tokens Studio and Terrazzo already implement this community group specification. Each token is a JSON object with a value, an optional type and description, and it can refer to another token, so "button.primary.background" can point at "color.brand.600". Name tokens by purpose, such as "color.text.danger", and fill in the descriptions.

Component docs tell the agent what already exists. Storybook's MCP addon gives agents three toolsets, for development, docs and testing. The docs toolset reads a components manifest built from your stories and prop types. It works today for React frameworks and for Angular and Vue 3 on Vite, and it's off until you switch it on. With the development and testing toolsets, the agent can write stories, run interaction and accessibility tests through Storybook Test, and fix what fails. All of this is still in preview, so expect changes. Any prop you haven't described is one the agent has to guess.

Figma Code Connect links Figma components to the components in your repository. When an agent asks Figma's MCP server about a design, it gets your "Button" instead of new markup that only looks like it. Code Connect needs a Dev or Full seat on a Professional, Organization or Enterprise plan. In Figma's own tests, published in August 2026, it cut median task time by 19.6% and median token use by 29.5%, across 27 test cases on two React design systems. Figma sells the feature, and the gains grew with the share of components mapped.

Atlassian keeps structured content for its components, icons, tokens, lint rules and guidelines in TypeScript files next to the code, and generates the content for its design-system MCP server, a skill and DESIGN.md files from them. Against agents without the server, Atlassian's own tests showed 34% faster work, 16% fewer tokens and 11% fewer errors (June 2026), though the post gives no sample sizes or task sets. BILL, which doesn't sell design tooling, ran a smaller test of its CLI, MCP server and skills. Across four tasks, token use fell from 19M to 10.4M, with one scored run per task, which its author calls a "small evaluation".

Skills and rules files carry the workflow: which files to touch, how to name things, and what to avoid. 1Password committed eight focused skills to its repository, for jobs such as scaffolding a component, defining tokens and writing Storybook stories, and its agent lists the decisions it wasn't confident about in each pull request. Add a short list of banned patterns, such as gradients on cards or the stock shadcn theme. Anthropic suggests keeping each CLAUDE.md file under 200 lines, because "longer files consume more context and reduce adherence."

Make the build enforce it

Anthropic's own documentation says Claude treats CLAUDE.md files "as context" and that "they aren't enforced configuration." In the lime-400 issue, the rule was in the file and the agent read past it. Any rule a machine can check belongs in a check that fails.

Start by removing what shouldn't exist. In Tailwind v4, setting "--color-*: initial" in your theme removes the default palette, so classes such as "bg-red-500" stop working and only your colours remain. Make the reset on a branch, then run the lint rule below: every default class still in use now shows up as unknown. Replace each one, including white and black, with your own colours before you merge. Tailwind itself won't warn you about a class it no longer generates; the element just loses its colour. Treat spacing more carefully. Most layout classes come from one "--spacing" value, so set your own scale instead of removing it. On Tailwind v3, the same reset is a "theme.colors" override in the config file.

Then make off-system values fail the lint. The "no-unknown-classes" rule in eslint-plugin-better-tailwindcss reports classes that Tailwind doesn't know. Point its "entryPoint" setting at the CSS file that holds your theme, or it checks against Tailwind's default palette and lets "lime-400" through. With the palette reset and the entry point set, a stray "lime-400" is flagged instead of silently rendering nothing. That rule still accepts arbitrary values such as "bg-[#1c1b1b]", which Tailwind generates on demand, so add the same plugin's "no-restricted-classes" rule with a pattern that bans square-bracket values. For CSS and SCSS, stylelint-declaration-strict-value can require a variable for every colour (turn off its "ignoreFunctions" option, or "rgb()" values get through). Atlassian's ESLint plugin has a rule that "enforces usage of design tokens rather than hard-coded values", which shows the kind of rule worth writing for your own tokens.

Run those checks in two places. A Claude Code hook can run your linter after every file edit (a PostToolUse hook that exits with code 2 when lint fails) and show the errors to Claude while it works. The same lint as a required check in CI catches code from every tool, including changes that v0 or Lovable push to GitHub.

Lint has limits. It can't tell that a component is the wrong one for the job, the problem 1Password ran into. Storybook interaction and accessibility tests catch broken states. Screenshot tests, such as Playwright's toHaveScreenshot, flag visual changes on key pages. And a designer should still review UI pull requests from a preview link.

Four stages: the agent reads tokens, component docs and Code Connect maps; builds from a short rules file and skills; lint and tests fail off-system values in CI; a designer checks previews and screenshot diffs

A short AI-readiness audit

Run one test before anything else. Open a fresh agent session in your main repository, with no extra instructions, and ask it to build a settings page using your design system. In the result, count the values that aren't tokens, the components it rebuilt that already exist, and anything that looks like a stock template. That count is your baseline. Run the same prompt again after each fix.

Area

Quick test

Fix

Tokens

Ask the agent to list them

One token file, W3C format

Hardcoded values

Search the code for hex colours

A lint rule that fails CI

Default palette

Add bg-lime-400 to one page

Reset Tailwind's default theme

Component docs

Ask which button fits, and why

Manifest with prop descriptions

Figma mappings

Inspect core components in Dev Mode

Code Connect on core components

Rules file size

Count lines in CLAUDE.md or AGENTS.md

Under 200 lines, details in skills

UI review

Open a recent agent-built PR

Preview links and screenshot tests

If a hand-added "bg-lime-400" still renders lime, or the lint doesn't flag it, Tailwind's default colours are still open to every agent. Start with the first three checks, since every later layer builds on your token names, and they stop human developers drifting too.

Working with us

Our product designers do this with your design and front-end leads. We start with the blank-session test on your repository and map what an agent can and can't read today. Then we set up the token file, component docs and lint rules with your team, so off-system UI fails a check before anyone has to catch it in review.

Hybrid Intelligence