Names for humans
"Red/500", "Primary-2", "bg-alt" made sense in a meeting, not to a model.
Tokens, primitives, variables, semantics and syntax structured so agents pick the right token and component — instead of guessing values.
AI was already in the flow, but it didn’t understand the DS: it produced loose hex values, random spacing and rebuilt components.
Restructure tokens into three layers, with intent in the name, a standard syntax and descriptions written for humans and LLMs.
Semantic architecture, naming grammar, descriptions and tests with real questions from designers and agents.
A design system that agents can read — the foundation for handoff, the content agent and the audit.
Designers and devs were already using AI every day to generate screens, components and code. The result had a pattern: it worked, but it wasn’t our product. Hex colors, made-up spacing, components rebuilt from scratch.
The design system had been designed for people — visual documentation, examples, best practices. To an AI, "Red/500" and "Primary" were just names. What was missing was saying what each token means and when to use it.
If AI doesn’t understand your design system, it will invent one.— the premise of this project
"Red/500", "Primary-2", "bg-alt" made sense in a meeting, not to a model.
The token stated the value, not the intent. AI didn’t know that red means "primary action".
When to use, when not to, what to pair it with — none of it was written in a readable way.
red.500 = #E10A1E — the raw value. Nobody uses it directly.
color.action.primary — the intent. It’s what AI should pick.
button.primary.bg — the specific use. Always points to a semantic token.
With an explicit chain, a rebrand changes one primitive and propagates on its own. And an agent that needs "the primary button color" finds the answer by meaning, not by value.
{
"Red/500": "#E10A1E",
"Primary": "#E10A1E",
"bg-alt-2": "#F4F2EE",
"Spacing/M": 16,
"radius-btn": 12
}
// no intent, no usage rules{
"color.action.primary": {
"$type": "color",
"$value": "{red.500}",
"$description": "Primary action. Use once per screen. Never on text."
},
"radius.control": {
"$type": "dimension",
"$value": "{radius.300}",
"$description": "Buttons, inputs and chips."
}
}background: #E10A1E;
border-radius: 12px;
padding: 14px 20px;Loose hex and numbers: works today, breaks on the next theme.
<Button variant="primary">
Confirm payment
</Button>A DS component with color.action.primary and radius.control — it respects theme and accessibility.
A predictable grammar makes names easy to guess — for people and for models. Click the parts to switch the options.
→ color.action.primary.default ·
A good name is one AI gets right without having seen the docs.
explicit layers: primitive, semantic and component
of semantic tokens with a usage description
hardcoded values in AI-generated code
agents built on this foundation: handoff, content and audit
This work is invisible on screen and decisive in everything that comes after: every design agent got better because it started reading the same system — with the same names, the same rules and the same intents.
C-SAT and surveys inside the apps — a home-grown "Hotjar".
See all cases