Generate Tokens
generate_tokensExport design tokens from active UI presets to CSS, JavaScript, JSON, or Tailwind formats for consistent styling across projects.
Instructions
Export the active preset's design tokens in various formats for use in your project.
Args:
format ('css'|'js'|'json'|'tailwind'): Output format (default: 'css')
css: :root { --color-surface: ...; } CSS custom properties
js: TypeScript const export for use with style objects
json: Raw token JSON
tailwind: theme.extend config for tailwind.config.js
include_comments (boolean): Add section headers in output (default: true)
Returns: Token file content as a string. Requires active preset.
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": "generate_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format for token export | css |
| include_comments | No | Add section headers in output |