generate_state_colors
Generate consistent hover, active, pressed, focus, disabled, and selected colors from a base color. Steps are computed in HCT space so each state keeps equal perceptual weight across any hue.
Instructions
Generate consistent interaction-state colors (hover / active / pressed / focus / disabled / selected) from a base color. Steps are computed in HCT space so they keep equal perceptual weight regardless of base hue.
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": {
"base": "<base>"
},
"name": "generate_state_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base/resting color (hex, rgb, hsl) | |
| isDark | No | Whether the base color sits on a dark background. Hover lightens on dark, darkens on light. |