Tailwind Design Tokens is a Visual Studio Code extension that lets you preview your design token colors directly in CSS, SCSS, and PostCSS files.
Perfect for Tailwind projects using CSS variables (--primary, --background, etc.) instead of utility classes like bg-blue-500.
🚀 Features
Show HSL colors next to your tokens (e.g., --background: 230 25% 8%).
Color swatches appear on the right for easy visual reference.
Compatible with Tailwind CSS v4+ and any CSS variable-based design token setup.
Works with background, text, and button tokens (like --filter-button).
Auto-detects tokens in :root—no additional setup required.
💻 Installation
Open VS Code.
Go to the Extensions panel and search for Tailwind Design Tokens.
Install the extension.
Open any .css, .scss, or .postcss file with your design tokens.
Color swatches will appear automatically to the right of each token value.