Skip to Content
Documentationshadcn/ui Theme Export

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 ThemeFigma Variable Naming
--backgroundcolors/background/DEFAULT 1
--foregroundcolors/foreground/DEFAULT
--cardcolors/card/DEFAULT
--card-foregroundcolors/card/foreground
--popovercolors/popover/DEFAULT
--popover-foregroundcolors/popover/foreground
--primarycolors/primary/DEFAULT
--primary-foregroundcolors/primary/foreground
--secondarycolors/secondary/DEFAULT
--secondary-foregroundcolors/secondary/foreground
--mutedcolors/muted/DEFAULT
--muted-foregroundcolors/muted/foreground
--accentcolors/accent/DEFAULT
--accent-foregroundcolors/accent/foreground
--destructivecolors/destructive/DEFAULT
--bordercolors/border/DEFAULT
--inputcolors/input/DEFAULT
--ringcolors/ring/DEFAULT
--chart-1colors/chart-1/DEFAULT
--chart-2colors/chart-2/DEFAULT
--chart-3colors/chart-3/DEFAULT
--chart-4colors/chart-4/DEFAULT
--chart-5colors/chart-5/DEFAULT
--sidebarcolors/sidebar/DEFAULT
--sidebar-foregroundcolors/sidebar/foreground
--sidebar-primarycolors/sidebar/primary
--sidebar-primary-foregroundcolors/sidebar/primary-foreground
--sidebar-accentcolors/sidebar/accent
--sidebar-accent-foregroundcolors/sidebar/accent-foreground
--sidebar-bordercolors/sidebar/border
--sidebar-ringcolors/sidebar/ring
--radiusradius/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 Template

2. 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

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

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

  1. The DEFAULT keyword is a way to organize variable hierarchies, learn more

Last updated on
Built with ❤️ by Kinsey.