πŸ€– AI + Design Systems Β· 2025

Scaling design‑to‑code with Figma MCP & Claude

what happens when your design system talks to AI? ✨

Exploring how connecting Figma's MCP server to Claude can transform design handoff, turning design tokens, component specs, and layout decisions into production-ready code.

πŸ’Ό Role: Product Designer
πŸ§ͺ Type: Design Exploration
πŸ›  Tools: Figma, Claude, MCP
πŸ–Ό
Hero image
Screenshot of Figma design system connected to Claude via MCP, showing the full pipeline
πŸ’‘
✦ The Problem

Design handoff is still broken

Despite the maturity of tools like Figma and the rise of design systems, the handoff between design and development remains one of the biggest friction points in product teams. Specs get misinterpreted. Design tokens drift between Figma and code. Developers rebuild components from scratch instead of referencing the system. And designers spend hours writing documentation that still doesn't capture every edge case.

The result? Inconsistency, rework, and a gap between what's designed and what ships. I wanted to explore whether AI could meaningfully close that gap, not by replacing designers or developers, but by acting as an intelligent translator between the two.

The question wasn't "can AI write code?", it was "can AI understand design intent well enough to produce code that a developer would actually use?"

^ this became the north star for the whole exploration 🧭
πŸ”¬
✦ The Approach

Connecting Figma to Claude via MCP

Figma's Model Context Protocol (MCP) server allows AI models like Claude to directly read design context, component properties, layout structures, spacing values, colour tokens, and typography scales. Instead of manually describing a design to an AI, MCP lets Claude "see" the Figma file and understand its structure programmatically.

I set up a workflow connecting a component library in Figma to Claude through MCP, then systematically tested how well it could translate different types of design decisions into clean, accessible frontend code.

βš™οΈ
Workflow diagram
Figma β†’ MCP Server β†’ Claude β†’ Production-ready React/HTML components

What I tested

πŸ–₯
Claude conversation screenshot
Showing Claude reading a Figma component via MCP and generating React code with correct tokens
🎨
✦ Design System

Building a testable component library

To properly evaluate the workflow, I needed a structured design system in Figma that used proper conventions, named tokens, consistent auto-layout, variant properties, and clear component hierarchies. This wasn't about building something massive; it was about building something well-structured enough that AI could parse it reliably.

The library included a core set of components: buttons (primary, secondary, ghost across three sizes), input fields with validation states, cards with multiple content configurations, and a responsive navigation bar. Each component used named design tokens for colour, spacing, border radius, and typography.

🎨
Design tokens in Figma
Screenshot showing colour, spacing, and typography token structure
🧱
Component library
Screenshot showing button variants, cards, and input components

Why structure matters for AI

One of the earliest insights was that the quality of AI output is directly proportional to the quality of your design system's structure. Loosely named layers, inconsistent token usage, or ad-hoc overrides led to messy, unreliable code. A well-organised Figma file, on the other hand, gave Claude everything it needed to produce clean, semantic output.

This was a key insight: AI doesn't just reward good design system hygiene, it demands it. If your tokens are messy, your AI-generated code will be messy. The discipline that makes a design system useful for humans makes it even more useful for AI.

^ design systems are now a two-audience problem: humans AND machines πŸ€–
πŸ§ͺ
✦ Findings

What worked, what didn't

After testing across dozens of components and layout scenarios, clear patterns emerged about where AI-assisted design-to-code excels and where it still needs human judgment.

Where it worked brilliantly

Token consistency

Claude pulled design tokens from Figma via MCP and applied them perfectly in code, CSS variables mapped 1:1 with Figma's named tokens. No more "is that #4338CA or #4339CB?"

Routine components

Standard UI components (buttons, inputs, cards) were translated with high fidelity. Variant properties in Figma mapped cleanly to component props in React.

Accessibility out of the box

Claude consistently generated semantic HTML with proper ARIA attributes, focus states, and keyboard navigation, often better than a rushed manual implementation.

βœ…
Side-by-side comparison
Figma component on the left, AI-generated code rendering on the right, showing fidelity

Where it needed human judgment

Complex interactions

Multi-step flows, drag-and-drop, and complex state management still required developer expertise. AI could scaffold the structure but not the nuanced interaction logic.

Brand nuance

Subtle design decisions, the "feeling" of a transition speed, the exact weight of a shadow, micro-interactions that give a product personality, needed human refinement.

Edge cases

Responsive behaviour at unusual breakpoints, content overflow scenarios, and internationalisation considerations required designer-developer dialogue that AI couldn't replace.

⚑
✦ The Workflow

A new design-to-code process

Based on these findings, I defined a refined workflow that positions AI as an accelerator in the design-to-code pipeline, not a replacement for either discipline, but a bridge that reduces friction and catches inconsistencies early.

πŸ”„
Refined workflow diagram
Step-by-step: Design in Figma β†’ MCP reads context β†’ Claude generates code β†’ Designer reviews β†’ Developer refines β†’ Ship

Key principles

πŸ’­
✦ Reflections

What this changes for designers

This exploration fundamentally shifted how I think about the designer's role in a world with AI-assisted tooling. It's not about AI replacing designers, it's about AI handling the mechanical translation so designers can focus on the decisions that actually matter: user needs, information hierarchy, interaction patterns, and the emotional quality of an experience.

It also raised the bar for design system craft. If your Figma files are structured for humans only, you're leaving value on the table. Designing for both human and machine readability means better naming conventions, more consistent token usage, and cleaner component architecture, all things that benefit the team regardless of AI.

What's next

The most exciting thing about this space isn't the technology, it's how it redefines collaboration. When the translation layer between design and code becomes faster and more reliable, designers and developers can spend less time on handoff mechanics and more time on the product itself.

^ that's the real unlock ✨
β†’
back to the beginning...

Keakie β†’