CSS Variable Extractor
Extract custom-property declarations, var() references and @property registrations from a stylesheet. Review case, source scopes and exact fallback text, then export the inventory locally.
Trace a CSS Variable Through a Responsive Override
CSS Variable Extractor: how to use it
- Paste or open a UTF-8 stylesheet and select Extract variables.
- Compare declarations, var() references and registrations by their source line and scope. Review names referenced without a declaration in the supplied CSS.
- Copy or download the JSON inventory with original declaration values and nested fallback text.
Limits and notes
Up to 120,000 UTF-16 code units and 4,000 occurrences. The inventory reads source, including nested rules and @property. Computed values depend on matching elements, the cascade, inheritance and additional stylesheets.
How your privacy works →CSS Variable Extractor: common questions
Do --Ink and --ink refer to the same variable?
No. CSS custom property names are case-sensitive. The report preserves case and distinguishes escaped source spellings that decode to the same name.
Does a fallback have to be a single value?
No. The fallback begins after the first comma at the top level of var(). The report preserves nested functions and their commas.
Why does the inventory show a reference without a declaration?
That name has no declaration or registration in the supplied CSS. It may be defined on an element, inherited through an ancestor or loaded by another stylesheet.