Export design tokens
export_tokensConvert brand colors, type scale, spacing, radius, and shadows into ready-to-paste CSS variables, Tailwind v4 @theme tokens, or W3C DTCG JSON; each color gets a 50–950 scale.
Instructions
Turns brand colors (plus a type scale, spacing, radius and shadows) into ready-to-paste tokens: CSS variables, a Tailwind v4 @theme block, or W3C Design Tokens (DTCG) JSON. Each color becomes a 50–950 scale.
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": {
"colors": "<colors>"
},
"name": "export_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fonts | No | E.g. {"sans": "\"Inter Variable\", sans-serif"} | |
| colors | Yes | Color name → hex, e.g. {"primary": "#3b82f6", "neutral": "#64748b"} | |
| format | No | tailwind | |
| shadowColor | No | #0f172a | |
| spacingBase | No |