Tailwind Visualizer
Paste your tailwind.config.js — instantly see your colour swatches, spacing scale, fonts, and border radius.
About the Tailwind Config Visualizer
A Tailwind CSS configuration file defines the design tokens for your project: the specific colours, spacing scale, typography sizes, and border radii that form your visual system. Rather than reading raw JavaScript values, this tool renders your config as a visual style guide — colour swatches, proportional spacing bars, font sizes rendered at their actual sizes, and shaped boxes for border radii.
What gets visualised
- Colours — rendered as labelled swatches, including nested palettes expanded to individual entries
- Spacing scale — shown as proportional horizontal bars with rem and px values
- Font families — listed with their full fallback stacks
- Font sizes — rendered at their actual pixel size so you can see the type scale visually
- Border radius — shown as coloured boxes with the actual radius applied
Using this as a living style guide
Paste your tailwind.config.js before a design review or handoff. The visual output reflects your actual project tokens — no separate Figma or Storybook maintenance required. The tool handles both theme.extend (merging with defaults) and theme (overriding defaults) config blocks.
Tailwind CSS design tokens and theming
Design tokens are the named values — colours, spacing, typography, radii — that form the foundation of a consistent visual system. Tailwind's configuration file is effectively a design token system. Exporting these tokens to other formats (CSS custom properties, Style Dictionary JSON, Figma Variables) lets design and engineering work from the same source of truth.
- CSS Custom Properties export — generate CSS variables from your Tailwind config for use outside of Tailwind classes
- Style Dictionary — open-source tool that transforms design tokens from JSON into any output format (CSS, iOS Swift, Android XML)
- Figma Variables — import colour and spacing tokens into Figma to keep design files in sync with code
- Dark mode — Tailwind's dark: variant can be driven by a custom class or media query; configure this in the darkMode config option
Frequently Asked Questions
primary: { 50: "#eff6ff", 500: "#3b82f6" } are expanded into individual swatches labelled primary-50, primary-500, and so on. Both quoted and unquoted key syntax are handled.