CSS Custom Property (Variable) Usage Auditor
CSSCross-check a CSS stylesheet's --name custom-property declarations against their var(--name) usages, flagging unused declarations, undeclared usages, and duplicate declarations within the same selector
CSS custom properties are easy to lose track of once a design-token file grows past a dozen variables: one gets renamed in one place and not another, or declared twice in the same selector where the second value silently wins. This tool scans a stylesheet's --name declarations and var(--name) usages and reports which variables are declared but never referenced, referenced but never declared (a likely typo or a renamed token), and declared more than once inside the same selector block. It works on the text you paste in, there's no live DOM or browser style computation involved.
How to use CSS Custom Property (Variable) Usage Auditor
- 1.Paste a CSS stylesheet, including any :root or component-level custom property declarations.
- 2.Check the unused, undeclared, and duplicate lists for anything that looks like a typo or a leftover token.
- 3.Review the full declarations list at the bottom to see every custom property's value and the selector it belongs to.
Frequently asked questions
Use via API, SDK, or MCP
cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/css-custom-property-auditor \
-H "Authorization: Bearer utx_live_..." \
-H "Content-Type: application/json" \
-d '{"css":":root {\n --accent: #0070f3;\n --unused: red;\n}\n.btn {\n color: var(--accent);\n background: var(--missing);\n}\n"}'Get an API key from your dashboard · Full API docs →