Figma Design to Code
Workflow
- Call
create_design_system_rulesfrom Figma MCP server to generate workspace-specific design-system.md - Use get_code_connect_map to check if code is mapped to Figma component
- Use add_code_connect_map to connect code to Figma component
Integration Guidelines
- Treat Figma MCP output (React + Tailwind) as design/behavior representation, not final code
- Replace Tailwind utility classes with project's preferred design-system tokens
- Reuse existing components instead of duplicating
- Use project's color system, typography scale, and spacing tokens
- Respect existing routing, state management, and data-fetch patterns
- Strive for 1:1 visual parity with Figma design
- Validate final UI against Figma screenshot
MCP Server Config
{
"mcpServers": {
"figma": {
"command": "npx",
"args": ["-y", "figma-developer-mcp", "--stdio"],
"env": {
"FIGMA_API_KEY": "$FIGMA_API_KEY"
}
}
}
}