Implement Design
implement_designConvert Figma frames into production code for React, Tailwind, React Native, or HTML/CSS, mapping visual values and components to design system tokens and flagging mismatches.
Instructions
Convert a Figma frame into production code using design system tokens and components.
Every visual value (color, spacing, typography, shadow) is matched against the project's design system tokens. Matched values use token references (e.g., var(--primary)); unmatched values use raw Figma values and are flagged in the mapping report.
Args:
figma_file_key (string): Figma file key containing the frame to implement
node_id (string): Node ID of the frame/section to implement
framework ('react-tailwind' | 'react-css' | 'react-native' | 'html-css'): Target framework
component_name (string, optional): Name for the generated component (inferred from frame name if omitted)
design_system_file_key (string, optional): Figma file key for the design system (tokens, variables, components). Use when the design system is in a different file than the frame being implemented.
Returns: Three content blocks: generated code, token/component mapping report, and a Figma screenshot.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"figma_file_key": "<figma_file_key>",
"node_id": "<node_id>",
"framework": "<framework>"
},
"name": "implement_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Node ID of the frame/section to implement | |
| framework | Yes | Target framework for code generation | |
| component_name | No | Name for the generated component (default: inferred from Figma frame name) | |
| figma_file_key | Yes | Figma file key containing the frame to implement | |
| design_system_file_key | No | Figma file key for the design system (tokens, components). If omitted, uses figma_file_key. |