Audit CSS colors
colors_auditScan CSS for color accessibility problems and return exact findings: text contrast below 4.5:1, border contrast below 3:1, and near-duplicate :root color tokens. Use for stylesheet or design reviews.
Instructions
Scan CSS for color problems and return exact findings: "text-contrast-aa" (color on background below 4.5:1), "nontext-contrast-3" (border-color on background below 3:1) and "near-duplicate-token" (two :root custom-property colors almost identical, ΔE00 under 2). Resolves var(--x) from :root. Use for any stylesheet or design review.
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": "colors_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | The CSS text to audit (rules and :root custom properties). Not a file path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checked | Yes | ||
| findings | Yes | ||
| problems | Yes |