Inspecting Websites4 min readUpdated

CSS Variables & Design Tokens

Read a site’s CSS custom properties in the Overview tab and export them as tokens.

Quick answer

CSS Tracker lists every CSS custom property defined on :root in a collapsible "CSS Variables" section of the Overview tab, grouped into colors, spacing & sizing, border radius, shadows and timing. You can copy any variable, and export the design as CSS variables, a Tailwind config, a shadcn/ui theme or W3C design tokens.

Where are the CSS variables?

Earlier versions had a separate Design Tokens tab. CSS variables now live in a collapsible "CSS Variables" section at the bottom of the Overview tab, and token exports moved to the Export menu.

1

Open the Overview tab

Open CSS Tracker on the page; the sidebar starts on Overview.

2

Expand "CSS Variables"

Variables from :root are grouped into Colors (with swatches), Spacing & sizing, Border radius, Shadows, and Timing & others.

3

Copy a variable

Click a row to copy it as a ready-to-paste declaration such as "--color-primary: #4f46e5;".

How do I export the tokens?

  • CSS Variables — a .css file with :root custom properties for the page’s colors and tokens.
  • Tailwind config — tailwind.config.js with colors, fonts, font sizes, spacing, radii, shadows and screens.
  • shadcn/ui theme — HSL CSS variables ready to paste into globals.css.
  • Design tokens (W3C) — DTCG JSON for Style Dictionary, Tokens Studio and similar tools.

Open the Export menu in the sidebar header and pick a format. The Developer exports lesson explains each one.

If the section says no CSS variables were found, the site probably hard-codes its values. The Tailwind and W3C exports still build tokens from the computed colors, fonts and spacing.

Try it on any website

CSS Tracker is free to start. Analysis runs locally in your browser.