extract_tokens_from_css
Extract design tokens by parsing CSS custom properties for use in cross-platform theme generation and WCAG contrast validation.
Instructions
Parse CSS custom properties (variables) and extract design tokens
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": {
"css": "<css>"
},
"name": "extract_tokens_from_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | The contents of a CSS file with custom properties |