refactor_css_with_theme
Replace hardcoded CSS colors with theme variables by matching styles against theme CSS, using confidence thresholds and optional reports.
Instructions
Refactor CSS to use theme variables instead of hardcoded colors
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>",
"themeCSS": "<themeCSS>"
},
"name": "refactor_css_with_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | CSS content to refactor | |
| themeCSS | Yes | CSS containing theme variables | |
| minConfidence | No | Minimum confidence for replacements | |
| generateReport | No | Generate detailed refactoring report | |
| preserveOriginal | No | Keep original values as comments |