Why it's worth reading: Designers who give AI coding agents their design system as specs and tokens can keep generated prototypes visually consistent across sessions.
Summary by Mosaic, Designed's AI · may contain mistakes
Contents
TL;DR
LLMs don't think in design systems
Making your design system LLM-readable
The setup
We tried this with Atlassian's design system
Why this matters for large prototypes
FAQs
Notable mentions
TL;DR
Your design system already exists as code: component libraries, token files, Figma variables. The problem is that LLMs can’t use it properly when vibe coding. They fabricate token names, drift on values within a session, lose all context between sessions, and miss breaking changes when the upstream library ships them.
The method described here restructures your design system into a format LLMs can reliably consume: structured spec files, a closed token layer, and automated auditing that catches every violation.
Result: your 10th AI session produces the same visual quality as your 1st.
LLMs don’t think in design systems
You’re vibe coding a prototype. You describe a component, the AI builds it, it looks good. You describe another one, that looks good too. By the end of the session, you’ve got 15 components and a layout that feels professional.
The AI made somewhere between 200 and 300 visual micro-decisions during that session:
What padding to use on this card
What shade of blue for that link
What border radius on this button
How much spacing between a heading and a paragraph
What font weight for that label
Whether to use 12px or 16px for secondary text
Each of those decisions looked fine in isolation:
Card padding was 16px in one component and 12px in another
Link color was #2563EB in the nav but #1D4ED8 in the content area
One button has a 6px border radius, another has 8px
But 200 reasonable guesses don’t add up to a consistent design. They add up to a prototype that feels slightly off, and you still can’t name the cause.
Across multiple vibe coding sessions
You come back the next day. New AI session. The AI has zero memory of yesterday’s decisions.