
Most teams have a design system: the shared set of colors, type, and parts that keeps a product looking like one thing. Most teams also know it has a few leaks. What changes when AI agents write the code is how fast a leak spreads.
The short version
- Figma's TJ Pitre wrote this week that design system drift often starts with one lost link.
- A color stops pointing to its named value and gets typed out instead.
- He says to fix it in the design file, not in the generated code. I'd add one thing. When agents build from your code, the code is a source too. I checked my own site.
- 44 typed-out colors exactly match a token that already exists. Start there, then add a check that blocks the next one.
What Pitre says
Figma makes design software. On December 3, 2026 its blog published "How to prevent drift in your design system" by TJ Pitre. He's Figma's product architect for AI and design systems, and he has built design systems for more than fifteen years. I read the whole post.
His example is a button. Every version of it looks right. But in a few versions a color lost its binding to a token. A token is a named value, like "brand background," that the whole system points to. The color is now just a typed-out code. It looks the same today. It won't change when the token does.
Hand that button to an AI agent through Figma's connector, and the agent may carry the typed-out color straight into new code.
Pitre's advice is good. Write down the decisions behind each part. Point the agent to the real components so it doesn't build a new button. Check the imports and token references before you trust what's on screen. And when a generated version shows a typed-out color, trace it back. If the link broke in Figma, fix it there. Fixing it in the output, he writes, means the problem will keep showing up.
He also says something I want to push on. Once an agent has copied a button into separate places, fixing the original won't repair the copies. Someone has to find them.
The code is a source too
Pitre treats the design file as the source and the code as the output. On a team that builds with agents, that line blurs. The agent writing tomorrow's page reads today's code. Whatever is in the file next door becomes part of its instructions.
So the copies aren't only damage to clean up. They're teaching.
I checked my own site this week. AI coding agents work in this codebase most days. The site has a color file with named tokens, and I counted every color typed out by hand in the code. I left out prototype pages and image-generating files, which have their own reasons.
| What I counted | Result |
|---|---|
| Code files checked | 224 |
| Files with a typed-out color | 60 |
| Typed-out colors in all | 546 |
| Typed-out colors that equal an existing token | 44, in 12 files |
One line on my blog post page sums it up. It sets the text color with the token for green. Right beside it, in the same line, the bar color is typed out. Same green, as a raw code.
Nobody would catch that in a review. It looks fine. But an agent asked to style the next page sees both ways of doing it, side by side, and may pick either one.
The rewrite
"Fix the drift at the source" becomes "count the copies in the code, because the code is a source."
And don't start with all 546. Split them into two piles.
The first pile is the 44 that exactly match a token. Each is a lost link. The fix is obvious and safe: swap the typed code for the token.
44
The second pile is the other 502. Those aren't lost links. Each one is a color choice nobody wrote down as a token. That needs a person with taste, not a find-and-replace. Pitre's advice on writing down decisions fits here.
Then do what Pitre suggests for repeat mistakes, and make it a check. A typed-out color that equals a token's value fails the build. That one rule stops the first pile from growing while you work through the second.
I haven't fixed my 44 yet. I'm writing this before I do, because the count is the useful part.
The design handbook has a chapter on the same idea for behavior, Specifying Behavior: an agent follows what's written down, so write down the rule. And I wrote about who should sign off when the system changes itself in LangChain's Design Agent Updates Its Own Design System Weekly. Someone on Design Should Sign the Diff.
What my count doesn't prove
It's one site. A typed color can be on purpose, for example where a token can't be used. My count matched exact values only, so it misses near-misses one shade off. And I didn't test whether an agent actually copied a typed color from the file next door. I'm saying it can, because it reads those files.
This week
Search your code for your brand's main color, typed out. Count the hits. Every hit that equals a token is a link you can restore today.
This is part of the argument on AI Product Management: when agents build from what's already there, the state of your code is part of the brief.
Related answer: Can an AI coding agent cause design system drift?
Sources: "How to prevent drift in your design system," TJ Pitre, Figma Blog, December 3, 2026, read in full. The count of this site's colors was made on December 3, 2026, at commit 3699af3c.
Frequently asked
What is design system drift?+
It's when a product slowly stops matching its design system. A common case is a color that should point to a named value, called a token, and has been typed out by hand instead.
What does Figma's TJ Pitre recommend?+
In a Figma Blog post on December 3, 2026, he says to check token links across every variant, document the decisions behind components, fix a lost link in the design file instead of in generated code, and turn a repeated mistake into a check.
What did I find in my own site's code?+
Outside prototype pages and image routes, 60 of 224 code files type out colors by hand, 546 in all. 44 of those, in 12 files, are the exact value of a token that already exists.
Why does code drift matter more with AI agents?+
An agent building a new page reads the files around it. If a file uses a token in one place and the same color typed out in the next, the agent sees both patterns and can copy either one.
Where should a team start?+
With the typed colors that exactly match a token. Each is a lost link with an obvious fix. Then add a check that fails the build when a typed color equals a token's value.


Sign in with LinkedIn to leave a comment.
Sign in with LinkedIn