CSS Custom Property Extractor

Extract bounded CSS custom-property declarations as text records.

Scope: This lexical scan ignores comments and strings but does not resolve cascade, inheritance, @rules, or computed values.

Workbench

Inputs stay on this page.

Lexically collects bounded --name: value declarations while ignoring strings and comments. It does not render CSS or resolve var() usage.

How to use CSS Custom Property Extractor

  1. Enter the css source.

  2. Press “Extract custom properties”.

  3. Copy the result, or download it as css-custom-properties.json.

About this tool

Extract bounded CSS custom-property declarations as text records.

Lexically collects bounded --name: value declarations while ignoring strings and comments. It does not render CSS or resolve var() usage.