Blanq · Design system · iOS · 2026

Handing a design system to an AI agent

Handing a design system to an AI agent

How one designer built a token set and a component library in Figma, and found a way to hand it to a coding agent without the agent guessing values from screenshots.

Timeline

Aug – Nov 2026

Aug – Nov 2026

Role

Solo product designer. Code written by Claude Code

Solo product designer. Code written by Claude Code

Scope

Tokens, components, design-to-code handoff, Vega plugin

Tokens, components, design-to-code handoff, Vega plugin

Product

Blanq, native iOS app (SwiftUI)

Blanq, native iOS app (SwiftUI)

Context

Blanq fills bureaucratic forms from data stored on the phone. There was no developer. Every screen and piece of logic was designed in Figma, and an AI coding agent wrote the SwiftUI code. The Figma file was on the free plan, which limits how often an agent can read it.

The second reader of this design system was an agent that can't ask a follow-up question.

Anything the system didn't state exactly, the agent had to guess.

The system

The system has three layers. Tokens hold color, type, spacing and radius. The rule: components use only tokens, screens use only components. Color tokens are named by role, not by look: accent/default, text/secondary, attention/bg. A token keeps its meaning when its value changes.

The system has three layers. Tokens hold color, type, spacing and radius. The rule: components use only tokens, screens use only components. Color tokens are named by role, not by look: accent/default, text/secondary, attention/bg. A token keeps its meaning when its value changes.

One token, two worlds

First handoff. Pictures of the system

On day one the agent hit the plan's API limit. From then on the system went over as files: icons as PDF, the iOS vector standard, and components as PNG. The agent measured spacing in pixels and sampled colors from the images.

The agent's own audit, written on the first day.

At 1x the exports were too small to read, so they were redone at 2x. That fixed what was visible, but not what a picture can't carry. No export showed an error state, so the agent invented a red. A disabled button looks the same in a PNG whether it's a separate color or a transparent one, so it was made transparent.

A picture shows how something looks, not what it is.

Where design meets code

Line height

Text sat a few points off the mockup. The designer noticed it by eye. Figma splits extra line height above and below a line, SwiftUI adds it only between lines, so one-line text comes out shorter. One text-style modifier now adds the missing half above and below, for every text in the app.

Styles, not overrides

Titles moved from Fraunces to Literata, because Fraunces has no Cyrillic. Titles were text styles, so it was one change in one file. Early tokens named after a single place, like iconButtonFill, died with the next redesign. Later ones name a job: warningSurface is the background behind anything missing.

Titles moved from Fraunces to Literata, because Fraunces has no Cyrillic. Titles were text styles, so it was one change in one file. Early tokens named after a single place, like iconButtonFill, died with the next redesign. Later ones name a job: warningSurface is the background behind anything missing.

Second handoff. Vega

Checking every export by eye never went away: does the screen match the frame, do the names in code match Figma. So the designer built Vega, a Figma plugin that exports the system itself (values, assets, names) into the project folder, formatted for iOS or Android.

The goal wasn't speed. It was removing the second look.

The system in the app

The system in the app

Interface colors and type on every screen come from the same tokens and 42 components. Left, the running app. Right, the Figma frame.

What's not done

What's not done

  • Drift. Literata styles are SemiBold 600 in Figma and Bold 700 in code. Copied once, never updated.

  • Names. Figma says accent/default, Swift still says mainAccent.

  • Spacing. About 290 token uses, but still about 260 hard-coded paddings.

  • Shadows and art. Shadows are rebuilt by hand. The ID card and UV effect use their own colors.

  • File hygiene. Blanq tokens sit next to Apple's iOS kit tokens, and a _deprecated token is still there.

Conclusion

Most problems here didn't come from bad components. They came from the gap between what a picture shows and what code needs. In a usual team, developers open the file, measure and rebuild the kit themselves. Doing that job through an agent showed where it actually breaks. Closing the gap, first by hand and then with a tool, made one designer enough to ship an app.

Create a free website with Framer, the website builder loved by startups, designers and agencies.