Exporting variables
Learn how to export theme settings from Figma to your shadcn/ui project with Figma to shadcn/ui plugin.
Video lesson · 1:08PluginLesson 41 of 45
Instructions
This feature is compatible with the shadcn ui Figma kit version from May 2025 and newer. Follow these steps to export your theme settings:
- Launch the plugin within your main shadcn/ui kit for Figma library file.
- Navigate to the "Manage Variables" tab.
- Select the "Export (v4)" tab.
- Choose your desired theme for export.
- Select your preferred color mode.
- Click "Export theme settings".
- Click "Copy CLI" to copy the command.
- Open your shadcn/ui project in your code editor.
- Access the terminal in your IDE
- Paste and execute the CLI command. Note: This process will overwrite your existing globals.css file with the theme settings from Figma. Consider creating a backup of your globals.css file before proceeding.
- Make sure to import the proper font family if you used a different one in your Figma design. You can learn more about fonts in Next.js in this guide.