extract_styles
Extract design tokens like colors, fonts, and spacing from Figma frames to generate CSS or theme files with organized JSON output.
Instructions
Extract all design tokens from a frame.
HOW IT WORKS:
Collects colors, fonts, spacing, border radius, shadows
Returns organized JSON ready for CSS/theme generation
No chunking needed (compact output)
TYPICAL WORKFLOW:
get_frame_info → understand structure
extract_styles → design tokens
Use tokens to build theme/CSS
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": {
"file_key": "<file_key>",
"page_name": "<page_name>",
"frame_name": "<frame_name>"
},
"name": "extract_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_key | Yes | Figma file key | |
| page_name | Yes | Page name (partial match) | |
| frame_name | Yes | Frame name (partial match) |