Skip to main content
The Tailwind export generates a theme.extend object that you can use in your tailwind.config.ts. It maps tokens to the correct Tailwind theme sections automatically.

Output format

Token type mapping

How it works

The Tailwind export references CSS custom properties (var(--...)) rather than embedding raw values. This means:
  1. Dark mode works automatically — the CSS variables change when you switch data-theme, so Tailwind utilities adapt without extra configuration
  2. Single source of truth — values live in your CSS variables file, not duplicated in the Tailwind config
  3. Smaller config — the Tailwind config stays clean and readable

Usage

After exporting, use Tailwind classes as usual: