audit_theme_usage
Scans project files to identify dead design tokens by checking if each CSS custom property in @theme blocks is referenced in source code.
Instructions
Identifies dead design tokens by scanning the project files. Checks each CSS custom property defined in @theme blocks to see if it is referenced anywhere in the source code.
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": {
"project_root": "<project_root>",
"css_path": "<css_path>"
},
"name": "audit_theme_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css_path | Yes | Absolute path to the CSS file containing the @theme blocks | |
| scan_dirs | No | Optional array of subdirectories to scan (defaults to ["src"]) | |
| project_root | Yes | Absolute path to the project root directory |