Skip to content
Omkar Khadamkar
Back to Exploring

Field notes · AI and design systems

Four ways AI-made screens go wrong

A design system is the rulebook for how a product looks: how tall a button is, how much space sits around a card. AI tools now build screens from that rulebook. They get the layout right and the small details wrong.

The problem

AI-made screens look finished long before they are correct. The gap between the rules and the screen is called drift.

What goes wrong

Not the layout. A size, a thin line, a colour fill, and any number the docs only hint at.

What fixed it

Rules a machine can't misread. Every rule names its exact value.

How I know

I saw three of the four in real work. I measured the fourth in a public test.

What the rules say

What an AI built

  1. Button 48 px, not 60
  2. Tab line 2 px, not 3
  3. Badge solid, not pale
  4. Padding 16 px, not 20
The same card twice. Four things differ, and none of them looks broken.Drawn to illustrate · marks match scenes 01 to 04
  1. 01A wrong size that looks believable is the one nobody catches.Way 1 · Size
  2. 02Thin lines slip first. A one-pixel miss doesn't look like a mistake.Way 2 · Thin lines
  3. 03A pale fill turns solid, and a quick review approves it.Way 3 · Colour fill
  4. 04Where the rules only hint at a number, the AI guesses and never says so.Way 4 · Guesses
  5. 05Writing the number down fixed it. Rewording the rule did not.The fix
  6. 06A named value can't be misremembered. A typed number can.The fix, part two
  7. 07Check the foundations first: an error there spreads upward.Before it ships
  8. 08Teams agree drift is real. They disagree on where to stop it.Where to stop it

01Way 1 · SizeSeen at work, then in a test

A wrong size that looks believable is the one nobody catches.

The rule said 60 pixels, the AI built 48, and 48 looks like a perfectly normal height.

The rule says 60 px tall

The AI built 48 px tall

The dashed outline shows where the rule's 60 pixels would end.

Go deeper: way 1, size 1 min

A control specified at 60 pixels came out at 48. Plausible, in proportion, and wrong. The screen still looks finished.

I saw this first in real work. Then I reproduced it in a controlled test: card padding set at 20 pixels came back at 16, in 3 of 3 separate runs. The test, its data and every run.

Try this

Tie every size to a named value the AI can point at, never a number it has to retype.

02Way 2 · Thin linesSeen at work

Thin lines slip first. A one-pixel miss doesn't look like a mistake.

The line under the active tab should be 3 pixels; the AI drew 2.

The rule says 3 px line

The AI built 2 px line

Below each tab, the same line zoomed four times. At normal size you can barely tell them apart.

Go deeper: way 2, thin lines 1 min

The component is right. Its shape is almost right. And "almost" adds up across every screen that reuses it.

A one-pixel miss looks like a display quirk, not an error. That is why thin details are the first to go.

My controlled test did not measure this one. The closest thing it did measure: a 4 pixel gap between tabs came back at 8, in 2 of 3 runs.

Try this

Give thin values, like borders and underlines, their own named values.

03Way 3 · Colour fillSeen at work, not in my test

A pale fill turns solid, and a quick review approves it.

Same colour, filled in solid instead of pale. A quick look passes it; a careful check catches it.

The rule says pale tint

The AI built solid fill

Go deeper: way 3, colour fill 1 min

A tint, a pale wash of a colour, quietly becomes a solid fill. Nothing looks broken, so it passes.

I saw this in real work but could not reproduce it. My controlled test produced no colour or fill errors at all. Every error in it was a spacing near-miss.

Try this

Name the fill for each state in the spec: "tint", not "light blue". Vague words like "light" are where a pale fill turns solid.

04Way 4 · GuessesMeasured in a public test

Where the rules only hint at a number, the AI guesses and never says so.

Across three runs, the AI filled in all 222 values the docs only hinted at. It got 15 wrong, left none blank, and never said it was unsure.

  • Filled in, right 207
  • Filled in, wrong 15

What never happened

  • 0Values left blank
  • 0Times it asked, or said it was unsure
One mark per value, across three separate runs. Every one got filled in, and the two boxes stayed empty.
Go deeper: way 4, guesses 1 min

This is the one I could measure. Three separate runs built the same five components from docs that described every value but named none. They said things like "one step up from the field scale", never "20 pixels". That made 222 graded values in all.

Every hint got turned into a plausible number. Twelve of the fifteen wrong ones came from one sentence. The docs said card padding was "one step up from the field scale". Every run read that as 16 pixels. The system meant 20.

The silence is the strange part. When there is truly nothing to go on, the AI does say so: that case is in scene 06. A hint gets filled in without a word. A real blank gets pointed out.

Method, data and every run: the drift lab.

Try this

Take one detail your docs describe but never give a number for. Have the AI build the screen again and look at what came back. It will not be empty. That is the whole problem.

05The fixMeasured in a public test

Writing the number down fixed it. Rewording the rule did not.

Naming each value took accuracy from 93.2% to 100%; rewording the same rules changed nothing.

Card padding is one step up from the field scale.

Value implied AI guesses 16

Card padding is 20 pixels.

Value named AI builds 20

  1. Values left implied93.2%
  2. Every value named100%
  3. Same values, reworded as strict rules100%
Go deeper: the fix 1 min

"Never do X" says what to avoid and nothing about what to do. So the AI fills the gap itself, confidently, and in the same wrong place every time. The exact value is what holds.

I used to argue that rules worded as "never do X" were the problem. In August 2026 a controlled test separated the two: naming the value moved first-build accuracy from 93.2% to 100%, while rewriting the same information from prose into strict rules changed nothing. So I narrowed my claim.

Negative wording may still cost you; the evidence both ways is in the drift lab. But the failure I could measure was a number that was never written down. Two practitioners in a public thread reached the same point on their own.

Try this

Find one rule in your docs that names no value. Add the value, have the AI build it again, and watch whether that detail stops drifting.

06The fix, part two

A named value can't be misremembered. A typed number can.

A token is a named value, like "control height is 60 pixels", so the AI has nothing to retype.

A typed number can drift

A named value one source

The harder case: a value with no name comes out right, as a raw number nothing can point at.

Go deeper: the fix, part two 2 min

If the AI retypes "48" from memory, it can misremember. If it points at one named value, there is nothing to misremember. Design systems always promised this discipline. Now everything rests on it.

A commenter's point on this, in a public thread, is why I reworked my guidelines.

The harder case: a value with no name

A value with no name can come out right and still cause trouble. Two components in a system I led carry a shadow: different shadows, each used once. Neither earned a shared token, because the bar for one is reuse.

When an AI wrote the spec for that system, it flagged the gap, then wrote the raw number in anyway. 25 of that spec's values point at a token. This one is just a number: correct, referenced by nothing, and copied again on every build.

A value used only once may not earn a shared name yet. It still needs a name of its own. So name every value, and make it shared when it turns up twice. Let the reviewing agent watch for the second time: it reads the whole system on every pass, and you don't.

From a production system, August 2026. Seen, not measured: my controlled test can't produce this, because every value in it has a token.

Try this

Find one raw value in your specs that never got a name. Name it now, even just for that one component. Then add "tell me when a value appears in a second component" to your reviewing agent's standing instructions.

07Before it shipsNot yet used by a team

Check the foundations first: an error there spreads upward.

Five checks for an AI-built screen before it ships. Start with the foundations.

One wrong value at the base reaches every layer above it. So check the base first.
  1. Foundations first.Colours and named values before components. Then check one control with an unusual size, like 69 pixels. It should still be exact.
  2. The right named value, in every state.Every state of a control, like hover or pressed. No retyped or bare numbers, thin lines included.
  3. Real components, safe to use.Not a lookalike. Nothing experimental, buggy or retired.
  4. Misses found and traced.What did the AI invent, or leave behind? And why?
  5. Proof stays inside the review. NewScreenshots that prove a fix stay in the private review, never on a public site.
Go deeper: the five checks 2 min

What each check adds

  1. If the colour page is wrong, stop. Nothing above it is worth judging yet.
  2. A tinted state uses the tint value. List any new raw value the AI brought in.
  3. Use the component the system maps to. More in the design system case study.
  4. Mark every miss "rule never fired" or "spec has a gap". Check that the prompt never named the fix.
  5. Screenshots and recordings that prove a fix live in the pull request or the build checks. Never a public repository, a public snippet or an outside image host.

Four of the five were review steps on one system I ran, judged by me. Check 5 is new. As a written checklist, no team has used it yet.

Why check 5 is new

In September 2026, a security vendor reported that AI coding agents, trying to show that screen fixes worked, had pushed more than 13,000 internal screenshots to over 900 public GitHub repositories, across more than 300 organisations. 93% sat in repositories employees had created under their own names.

The agents couldn't attach images to the private pull request, so they found another route.

The vendor's figures, not mine. Reported by Help Net Security.

How I test without fooling myself

  • Never name the fix in the prompt. Ask the AI to "rebuild the page from the current spec", not to "make the button 60px tall". If the fix lands unprompted, the docs did their job. Name it, and you have tested your prompt, not your docs.
  • Every miss has one of two causes. Did the AI touch that detail? If not, the rule never fired: make it fire. If it did and it's still wrong, the spec has a gap: fill it. Diagnose before you fix, or you fix the wrong layer.
  • Adding is easy. Removing needs an instruction. When revising, AI happily adds what the spec defines but rarely removes what it doesn't. Old parts survive every update unless removal is itself an instruction.
  • Plant a tripwire. Give one control an unusual size, like 69 pixels, and check it first. If it comes back as 70, the chain of named values broke somewhere upstream, long before a human eye would catch it.

Try this

Run the five on the next AI-built screen your team reviews. Note which check caught something: that is where your docs are thinnest. Then open your last ten merged pull requests. Where do their screenshots live?

08Where to stop itFrom 60 public comments and calls

Teams agree drift is real. They disagree on where to stop it.

Six places along the way from the rules to a live screen, and none works for every team.

  1. Design system
    • FReplace the system's whole set of values
  2. Docs and values
    • ADocs a machine can't misreadMy setup
    • CPoint the AI at the value files
  3. AI builds
    • BThe AI places the real component
    • EA predictable tool builds it, not the AI
  4. Output
    • DA second AI reviews the firstWorks anywhere
  5. Live screen
Go deeper: where to stop it 2 min
  • A. Docs a machine can't misread. One guideline per component, positive rules, exact values, and a stylesheet generated from the production values, so there is one source of truth. Check it against the component library every time the AI builds again. Fits if you can't touch the code. This is my setup.
  • B. The AI places the real component. Instead of re-creating a button, the AI uses the actual coded one, so there is nothing to drift. Fits if your components are coded, current and easy to bring in.
  • C. Point, don't describe. Tell the AI where the value files are, plus a usage spec, instead of describing components in prose. Building from a description varies from run to run, however strict the text. Fits if structured value files exist, even when the production code is off-limits.
  • D. A second AI reviews the first. One agent builds, a separate one checks. It is common, and it is the most portable place on this map, because it asks nothing of your setup. A person comparing by hand is the manual version. Fits anywhere: start here if you can start nowhere else.
  • E. The AI edits a description; a predictable tool builds the screen. The same description always gives the same result, so the run-to-run variation disappears. Fits if you can adopt or build that kind of toolchain.
  • F. Replace the system's whole set of values. Audit the production system, swap in values an AI can read, confirm nothing breaks, ship. You win that control with evidence, not argument: get read-only access, prove it on a test copy, use dark mode as the test, then take it to the CTO. Fits if you control the values, or can win that control.

No single guardrail works everywhere. Each setup needs its own place, or a combination. The real question is not "how do I stop drift", but which of these places your setup can support.

Built from 60 public comments and calls with practitioners. A is my setup; the others came from the people in those conversations.

Try this

Mark the two places your setup can support today. Run them together: one early in the line, one late.

Two questions I can't answer yet

Docs AI builds Fed back Anchor: the library

If docs rewrite themselves, what stays true?

When the AI's output becomes its next input, small errors pile up quietly. Something outside the loop has to stay fixed.

Teams can share control. They still need one set of numbers.

Design and engineering can each own part of the job, as long as both read from the same values.

Go deeper: two open questions 1 min

Picture docs that produce their own next version. One practitioner asked what stays true then, and nobody has an answer yet. My anchor today: the component library, plus a comparison against it every time the docs regenerate.

The real boundary is not old system versus new. It is how control of the values is held. When two teams share control, accuracy depends on one agreed set of values, the same set the live product uses. Design decides what each value means. Engineering makes sure it works. That way of putting it came from another practitioner.

Try this

If your docs feed their own regeneration, name your outside anchor now. And write down who owns what each value means, and who owns that it works. If two systems hold the truth, drift already lives between them.

Stopping drift somewhere not on this map?

Or have you watched one of these six fail? I want to hear about it. These notes grow as the conversations do.

Email me