export_palette
Export a color palette as CSS custom properties, SCSS variables, Tailwind config, W3C design tokens, JSON, or a DESIGN.md colors block, with optional names and prefixes for each token.
Instructions
Export a list of colors as CSS custom properties, SCSS variables, a Tailwind config snippet, W3C design tokens, JSON, or a DESIGN.md colors: block.
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>",
"format": "<format>"
},
"name": "export_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | No | Optional names for each color. Length must match colors. Defaults to a 50/100…900 scale. | |
| colors | Yes | Palette colors (up to 256) | |
| format | Yes | Output format: css (custom properties), scss (variables), tailwind (config), tokens (W3C design tokens), json, design-md (DESIGN.md `colors:` YAML for the front matter) | |
| prefix | No | Optional prefix for variable/token names (e.g. 'brand') |