By Fantasy

When the Design System Writes the Code

How We Build

Caroline Hilman is a Design Director at Fantasy. She wanted to know whether a design system built for a human team could brief an AI directly. Then she built a solution to prove it could.

With the system exported to a single file, Claude Code produced responsive, animated components and assembled a full page from a list.

The Pura Health design system components page on a tablet, showing the typography scale, core color ramps, buttons, and form inputs, beside a phone running the app.

Why make a design system AI-ready?

The DesignBridge Figma plugin exporting a design system into a single machine-readable .md file, which is then read as context in a Claude Code session.

How does a design system become machine-readable?

Do you name tokens differently for an LLM?

“Interestingly, I didn’t find much of a difference. The key wasn’t naming them differently for an LLM, it was naming them well. Clear, consistent, and scalable token names worked equally well for both AI and human developers.”

A generated mobile UI component on a phone: a daily health score dial, a recovery summary, and goal cards, all built from the design system tokens.

What does this solve for a design team?

Hands holding a tablet reviewing an AI-generated page of permission prompts, an A/B test panel, and device integrations, the designer review pass the output still needs.

What would make the output production-ready?

Where is the line between AI and the designer now?

“I think that line is definitely moving, and it’s moving fast. Today, AI is capable of generating production-ready components, implementing design systems, and assembling pages, as long as it has the right structured foundation. Where designers still add the most value is in shaping the user experience, establishing the visual language, defining the system itself, and deciding what should be documented in the system.”

AI is great at executing the system, but it doesn’t define the vision behind it.
Caroline Hilman, Design Director, Fantasy
A full page assembled by Claude Code from a list of components: permission prompt cards, an A/B test result panel, and a grid of wearable device integrations.

So, can the design system write the code?

How to generate UI components from a Figma design system with Claude Code

A Pura Health design system spread out as UI screens, color ramps, pricing cards, a health dashboard, and a 3D digital twin viewer, showing the components generated from the system.

Frequently asked questions

Let's talk. We'd love
to hear from you.


© 2026 Fantasy