Generate Dark Theme
generate_dark_themeConvert light design tokens JSON into a dark theme for data-theme and prefers-color-scheme, then recheck and fix text and accent contrast against the new background.
Instructions
Turn a light design's tokens JSON into a dark theme (data-theme and prefers-color-scheme), re-checking text and accent contrast against the new background and fixing failures. Deterministic, no API key needed.
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": {
"tokens": "<tokens>"
},
"name": "generate_dark_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | Yes | Tokens JSON with a `colors` object (from extract_tokens or your own) |