figma_extract_design_tokens
Extract colors, typography, spacing, and other design tokens from a Figma file. Convert them into CSS variables or theme files for consistent design-to-code handoff.
Instructions
Extract design tokens (colors, typography, spacing, etc.) from a Figma file. Useful for generating CSS variables or theme files.
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": {
"fileKey": "<fileKey>"
},
"name": "figma_extract_design_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileKey | Yes | The Figma file key |