← Back to Features
Pro

Design Tokens

Design Tokens collects every CSS variable, colour, font stack, radius and shadow a page uses, sorts them into base tokens, theme modes and component scopes, and downloads them as W3C design-token JSON for Figma or as a CSS file.

A design system is rarely written down as completely as it is implemented. The real palette, spacing scale and type ramp live in stylesheets — spread across custom properties, theme overrides and hard-coded values — and rebuilding them by hand from DevTools means clicking through hundreds of rules and copying values one at a time.

This tool reads them all at once. It walks every stylesheet on the page, including cross-origin ones the page itself is not allowed to inspect, and collects every custom property, plus variables set at runtime in inline styles. Variables on :root become base tokens; the same names redefined under a theme selector such as .dark, [data-theme="dark"] or prefers-color-scheme become separate modes; variables defined on individual components are listed as scoped. Every value is resolved through its var() chain, so you see the colour that actually renders, not just a reference to another variable.

Each token is classified from its value and name — colour, font family, font size, weight, line height, spacing, radius, shadow, gradient, duration, easing or z-index — and colours are normalised to hex, including the channel-only formats Tailwind and shadcn use (222 47% 11%) and Bootstrap's -rgb triplets. Alongside the declared variables, the tool samples rendered elements to report the colours, font stacks, sizes, radii and shadows that are actually used, with usage counts — exactly what you need on a site that never adopted variables at all.

Export takes one click. Download tokens JSON saves the W3C Design Tokens format ($value and $type), which the Tokens Studio plugin imports into Figma and Style Dictionary turns into code for any platform; theme modes and observed values are kept in their own groups, so nothing gets mixed up. Download CSS writes the variables back out as a stylesheet, with each mode under its original selector.

Live Preview
brand.example.com
Design Tokens 42 base variables · 2 theme modes · 18 colours in use
Colours Typography Variables Spacing, radii & more
Colour tokens 6 · swatch halves show light / dark
--color-primary
#2563eb
--color-accent
#f97316
--background
#ffffff · hsl channels
--foreground
#020817 · hsl channels
--success
#16a34a
--border
#e2e8f0
Colours in use
#020817 214× text
#ffffff 96× background
#2563eb 41× background
#64748b 38× text
#f97316 9× background
Download tokens JSON Download CSS
"color-primary": { "$value": "#2563eb", "$type": "color" }
Key Features

Every CSS Variable on the Page

Custom properties from every stylesheet, including cross-origin sheets the page cannot read, plus variables set at runtime in inline styles.

Theme Modes Kept Apart

Overrides under .dark, [data-theme] or prefers-color-scheme become separate modes, shown side by side with the base value.

Resolved and Classified

Every var() chain is resolved, and each token is typed as a colour, font, size, spacing, radius, shadow, duration, easing or z-index.

Colours in Any Format

Hex, rgb, hsl, oklch, named colours and the channel-only values Tailwind, shadcn and Bootstrap use, all normalised to hex.

What the Page Really Uses

Colours, font stacks, sizes, weights, radii and shadows sampled from rendered elements, with how often each one appears.

Figma-Ready Export

W3C design-token JSON for Tokens Studio and Style Dictionary, or a CSS file with every mode under its original selector.

Common Use Cases

Bringing a coded site into Figma

Import the real palette, type and spacing into Tokens Studio instead of picking colours from screenshots.

Auditing a design system

See how many colours and font sizes a site actually uses, and which values bypass the tokens it defines.

Checking a dark theme

Compare every variable the dark mode overrides with its light value, side by side, and spot the ones that were never overridden.

Migrating to a new stack

Export the tokens once and feed them to Style Dictionary or a Tailwind config rather than copying values by hand.

Studying another site's design

Pull the colour system, type scale and radii of a site you admire into a file you can work from.

How to Use
1

Open Design Tokens

Click the Design Tokens icon in the DevSuite Pro dock. The extraction runs straight away and the summary counts variables, modes, colours and font stacks.

2

Browse the colours

The Colours tab shows every colour token as a swatch, split to show each theme mode, followed by the colours the page renders, with usage counts.

3

Check type and scales

Typography previews each font stack and lists sizes, weights, line heights and @font-face rules; the last tab covers spacing, radii, shadows and motion.

4

Search the variables

The Variables tab lists every custom property with its authored and resolved value. Switch between base, each theme mode and component-scoped variables.

5

Export

Download tokens JSON for Figma via Tokens Studio, or Download CSS for a stylesheet. Tick the checkbox to include component-scoped variables as well.

Ready to Try

Install DevSuite Pro for free and unlock 74+ developer tools for your browser.

Add to Chrome Add to Edge Add to FireFox