shadcn/ui Theme Export
Variables Xporter seamlessly integrates with shadcn/ui, directly exporting Figma Variables as shadcn/ui theme configurations.
Getting Started
1. Follow shadcn/ui Naming Conventions
For seamless integration, your Figma Variables must follow shadcn/ui naming conventions. Here’s the complete mapping between shadcn/ui theme variables and the Figma Variable names you should create:
shadcn/ui Theme | Figma Variable Naming |
---|---|
--background | colors/background/DEFAULT 1 |
--foreground | colors/foreground/DEFAULT |
--card | colors/card/DEFAULT |
--card-foreground | colors/card/foreground |
--popover | colors/popover/DEFAULT |
--popover-foreground | colors/popover/foreground |
--primary | colors/primary/DEFAULT |
--primary-foreground | colors/primary/foreground |
--secondary | colors/secondary/DEFAULT |
--secondary-foreground | colors/secondary/foreground |
--muted | colors/muted/DEFAULT |
--muted-foreground | colors/muted/foreground |
--accent | colors/accent/DEFAULT |
--accent-foreground | colors/accent/foreground |
--destructive | colors/destructive/DEFAULT |
--border | colors/border/DEFAULT |
--input | colors/input/DEFAULT |
--ring | colors/ring/DEFAULT |
--chart-1 | colors/chart-1/DEFAULT |
--chart-2 | colors/chart-2/DEFAULT |
--chart-3 | colors/chart-3/DEFAULT |
--chart-4 | colors/chart-4/DEFAULT |
--chart-5 | colors/chart-5/DEFAULT |
--sidebar | colors/sidebar/DEFAULT |
--sidebar-foreground | colors/sidebar/foreground |
--sidebar-primary | colors/sidebar/primary |
--sidebar-primary-foreground | colors/sidebar/primary-foreground |
--sidebar-accent | colors/sidebar/accent |
--sidebar-accent-foreground | colors/sidebar/accent-foreground |
--sidebar-border | colors/sidebar/border |
--sidebar-ring | colors/sidebar/ring |
--radius | radius/radius |
Variables Xporter automatically exports non-shadcn/ui variables as Tailwind CSS configuration, ensuring complete Design Token coverage.
Start with our template instead of creating your own:
Custom shadcn/ui Theme Template2. Select the Corresponding Format
Open Variables Xporter and select shadcn/ui and your desired Tailwind CSS version in the export format.

Select shadcn/ui format
3. Export Your Design System
Select the collections and variable groups you want to export, click the export button, and Variables Xporter automatically generates production-ready shadcn/ui theme configuration.

Export result
4. Integrate with Your Project
Copy the exported configuration to your shadcn/ui project’s Tailwind CSS configuration file. No additional setup required—your design system is ready to use.
Footnotes
-
The
DEFAULT
keyword is a way to organize variable hierarchies, learn more ↩