Your AI design pipeline,
ready to ship.
Follow these 6 steps to connect Figma, Claude, and Cursor into a pipeline that goes from design system to production-ready code automatically.
Your design system becomes the code.
Not a reference doc someone interprets. The actual working code, generated directly from your Figma design system, on-brand from line one.
"build me a login screen" and get back a real React component using your actual button radius, your brand color, your heading font, because Claude read them directly from Figma. Not an approximation. The real thing.Structure Your Figma File for AI
Before variables, before tokens, before any of the tools, your Figma file needs to be organized in a way AI can actually navigate. A messy file produces messy code. A structured file produces clean, accurate components from the first prompt.
The three tiers everything lives in
Individual, self-contained UI pieces. Button, Input, Badge, Avatar. Each maps to a single reusable code file.
Components combined to solve a real use case. Login Form, Data Table, Nav Bar. Built from component instances.
Complete screens assembled from patterns and components. Dashboard, Settings, Onboarding. What users actually see.
How to name your Figma pages
-- Foundations: one page per category -- 01 Foundations - Color 01 Foundations - Typography 01 Foundations - Spacing & Grid 01 Foundations - Elevation & Radius -- Components: grouped by function -- 02 Components - Actions 02 Components - Inputs 02 Components - Navigation 02 Components - Feedback -- Patterns: composed from components -- 03 Patterns - Forms 03 Patterns - Lists & Tables 03 Patterns - Cards & Content -- Pages: full screens -- 04 Pages - Dashboard 04 Pages - Settings 04 Pages - Onboarding
Build a Design System AI Can Actually Use
Before AI can generate UI that looks like your product, it needs to know your rules. Not just colors and fonts, but what those colors and fonts mean. This is the foundation everything else depends on.
- 1Open your Figma file. Go to Local Variables in the top right toolbar.
- 2Create two collections: Primitives and Semantics. Primitives are your palette. Semantics are your decisions.
- 3In Primitives, add all raw values using forward-slash naming:
color/brand/500,spacing/16. Never reference these directly in components. - 4In Semantics, create aliases that reference primitives. Example:
color/text/primaryโ referencescolor/neutral/900. These are what AI uses. - 5Publish the library: Assets panel โ your library name โ Publish. Library and working file must be in the same Figma workspace.
Give Claude Direct Access to Your Figma File
Right now Claude and Figma don't know each other exist. This step connects them using MCP, a live bridge that lets Claude read your design file directly without you having to copy-paste anything between apps.
- 1Download and install Claude Desktop from claude.ai/download
- 2Get your Figma API token: Figma โ Account Settings โ Personal Access Tokens โ Generate new token. Give it read access. Copy it somewhere safe.
- 3In Claude Desktop: Settings โ Developer โ Edit Config. Paste the config below, replacing
YOUR_TOKEN_HEREwith your token.
{
"mcpServers": {
"figma": {
"command": "npx",
"args": [
"-y",
"figma-developer-mcp",
"--figma-api-key=YOUR_TOKEN_HERE"
]
}
}
}
- 4Save the config and fully restart Claude Desktop.
- 5Test by typing: "What Figma skills do you have access to?" Claude should list tools like
search_design_systemandget_variable_defs.
Give Claude Its Standing Orders
Claude reads your design system and drafts component structure, but it needs to know your rules first. This step gives Claude a permanent briefing so every conversation starts from the same foundation.
- 1In Claude Desktop or Claude.ai, find Projects in the left sidebar and click New Project.
- 2Inside the project, click Project Instructions. Open
system-prompt.txtfrom this kit, select all, and paste it in. - 3Every conversation you start inside this Project automatically inherits these instructions. You never have to re-explain your design system again.
system-prompt.txt. Update it to match how your project is organized. Everything else works out of the box.Set Up Cursor โ Where Code Gets Written
Cursor is a code editor with AI built in. It's where the components Claude designs actually get written, cleaned up, and saved. Claude is the architect. Cursor is the builder.
- 1Download and install Cursor from cursor.com. Open your project folder in it.
- 2Take
cursor-rules.txtfrom this kit and rename it to.cursorrules. Drop it at the root of your project. Cursor reads this automatically. - 3Create a
tokensfolder at the root of your project. Placetokens.jsoninside it. Generatetokens.cssfrom it and place that inside too. - 4Set the AI model to Claude Sonnet in Cursor settings.
- 5Important habit: Accept all changes after Cursor generates something that works. This saves your progress and gives you a clean rollback point.
Generate Your First Component
Everything is connected. Claude reads your Figma design system and drafts component structure. Cursor takes that draft and produces final, production-ready code referencing your tokens.
Step 1 โ Ask Claude to read your design system
Step 2 โ Ask Cursor to write the final code
You're set up to ship faster.
Your design system is now something AI can actually use. Every component your team generates from here will be on-brand, consistent, and ready to commit.