Extract Design Tokens
extract_tokensExtract design tokens (colors, fonts, spacing, radii, shadows) from a design image or spec and export them as CSS variables, Tailwind config, W3C JSON, or Figma Tokens Studio JSON.
Instructions
Extract design tokens (colors, fonts, spacing, radii, shadows) from a design and export them as CSS variables, a Tailwind config, W3C design tokens JSON, or Figma (Tokens Studio) JSON.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | JSON spec from analyze_design | |
| image | No | Local file path or http(s) URL of the design image | |
| format | No | Export format. 'figma' = Tokens Studio JSON, 'json' = W3C design tokens | css |