Developer

Runs in your browser. No file uploads for processing.

Find CSS Variable Dependencies and Cycles (No Upload)

Trace CSS custom property references, find dependency cycles and see variables not declared in one block.

Loading tool...

How to trace CSS variable dependencies

  1. Paste one declaration block

    Use a bare declaration list or one :root block. The tool reads the snippet as text and never applies it to the page.

  2. Review cycles and missing local declarations

    If --a uses var(--b) and --b uses var(--a, red), both belong to one cyclic group. References nested inside fallback values are included too.

  3. Export the dependency map

    Download variable names, dependency edges and findings as JSON, without the original declaration values or URL contents.

Use cases

  • Trace why a theme token depends on an unexpected fallback.
  • Find circular references in a set of custom properties before changing a shared design token.

Limits and privacy

  • Checks one declaration block only. Does not simulate inheritance, selectors, cascade, computed values or whether a fallback will be used in the browser.
  • Up to 96 KiB, 1,000 declarations and 500 custom properties. Duplicate custom properties, rules inside rules and escapes outside quoted strings are unsupported.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

Can I test a responsive clamp() value?

Use CSS Clamp Calculator for responsive scales. This tool only traces custom property references and does not evaluate values.

What counts as a CSS dependency cycle?

A locally declared property refers to itself, or several declared properties refer back to one another through var() calls.

Do var() fallbacks count as dependencies?

Yes. The analysis includes nested var() calls inside fallback expressions, even when a browser might not use that fallback.

Is every variable not declared here actually undefined?

No. An ancestor, another selector or another stylesheet may define it. The checker only knows what is present in the input block.

Can I paste an entire stylesheet?

No. Paste a bare declaration list or one :root block. Duplicated property definitions and nested rules are not combined.

Are strings or URLs interpreted?

No. The analyzer skips quoted strings and url() contents, does not fetch them and does not apply the CSS.

What does the JSON download contain?

Names of variables and referring declarations, references and fallback markers, cyclic groups and local findings. It omits raw declarations and values.

Related tools