This feature requires a Pro Licence for Tokens Studio. If you are using this feature with a Free licence, you may be locked into read-only access to the feature.
Don't have a Pro Licence? You can still Export to Figma using Token Sets
Export Using Token SetsExport Using Themes (pro)
The Themes (pro) feature allows groups of Token Sets to work together to perform various tasks. When you attach your Tokens to Styles and Variables by Exporting to Figma from Themes, there are some powerful workflow advantages:
Choose which Themes are attached to Styles and Variables.
Styles can have Variable references.
Variable collections with mode switching is supported.
Separate Figma Files can have Styles and Variables attached to different Themes.
Also known as Non-local Variable references
How it works
Once you have created your Themes (pro) in the plugin, select the Styles & Variables Button from the Tokens page.
Choose the Export Styles & Variables option.

The Export Options menu will open and allow you to choose which actions the plugin should perform on the Tokens included in your export:
Export your Tokens as Variables, Styles or both.
Choose any Style export specific settings.
Choose any update specific settings.
→ Jump to the Export to Figma Options guide for more details.
Once you confirm your Options, you'll see the Export as Themes or Token Sets page. If you have a Pro licence for Tokens Studio, you'll be brought directly to the Themes page.
The Themes page is is where you choose which Themes are included in your export.

primitives-all
Theme is selected (checkmark visible) for export. The Options button is highlighted to show how to open the menu. If needed, you can review or modify your Options before you Export by selecting the Options button at the bottom of the plugin to open the menu.
Once you select the Export to Figma button, the Plugin will apply your Export Options to all compatible Tokens included in the Export.
Each Theme Group will be mapped to a Variable Collection
If you've selected to Export your Themes as Variables, each Theme Group is mapped to a Variable Collection with the same name.
Each Theme within the Group is mapped to a Variable Mode with the same name.

→ Jump to the Variables and Tokens Studio guide for more details on mapping.
Select Themes to Export
The Export from Themes page will display a list of all Themes you've already created.
If you don't see any Themes listed, (the example in the image below on the left) you'll need to create a Theme to complete the export.

To select which Themes to include in the Export, select the checkmark to the left of the Theme name. By default, all checkmarks are selected to be included for export.
Checkmark visible will be exported
Empty checkbox will not be exported.

primitives/all
Theme selected on the right.If needed, you can review or modify your Options before you Export by selecting the Options button at the bottom of the plugin to open the menu.
Once you select the Export to Figma button, the Plugin will apply your Export Options to all compatible Tokens included in the Export.
Export as Variables feedback messages
When exporting Variables, you'll see a feedback message at the bottom of your Figma file depending on your configuration.
If you are creating new Collections of Variables or adding Variables within an existing collection, the message will show a count of what was created (right side of the image below).
If you are updating existing Variables, the message will tell you that no Variables were created, but will not tell you that Variables were changed (left side of the image below).

Error messages
It's also common to see a red message at the bottom of your file, indicating an error in the export.
Your Figma plan only allows for the creation of 1 mode
Your Figma plan only allows for the creation of 1 mode
message will appear if:
You have a Free Figma plan.
The Figma file is in your Drafts instead of a Project.
The image below shows how to tell if your file is in your Drafts.
Move the file to a Figma project then Export to Figma as Variables again to create your other modes.

Your Figma plan only allows the creation of 4 modes
Your Figma plan only allows the creation of 4 modes
message will appear if you have 5 or more Themes within your Theme Group.
The Plugin will export the first 4 Themes to your Variable collection (starting at the top of the Themes list) and skip the rest.
In the image below on the left, there are 5 Themes within the brands
Theme Group, and on the right, the first 4 Themes have been created as modes within a Variable collection in Figma called brands
.
The 5th Theme in our list at the bottom called black-berry
was not exported.

Check your exported Styles and Variables
Once your Export has finished, check to ensure you have the output to Figma you expected. This depends on the combination of the Export Options and the Themes you selected to export.
If you have unexpected results, you can select a guide below for more details that are helpful in troubleshooting.

Themes (pro)
Provides tips on setting up Themes to help ensure references and resolved values are accurate on export.

Export to Figma Styles with Variable references
Detailed guide on this multi-step process and the Token Types supported.
Resources
Figma resources:
Design in Figma - Overview of Variable Collections and Modes
Community resources:
The Tokens Studio collection of Variable videos - YouTube Playlist
Our friends at UI Collective have free learning resources on Variables - YouTube Playlist
💡 Something to share? Submit it here!
Known issues and bugs
Tokens Studio Plugin GitHub - Open issues for Figma export - themes
Tokens Studio Plugin GitHub - Open issues for Figma Variables
Tokens Studio Plugin GitHub - Open issues for Figma Styles
🐞 If you are experiencing an issue not listed here, please reach out to us on the Troubleshooting channel of our community Slack, submit it on our feedback tool, or send us an email [email protected]
Requests, roadmap and changelog
Add support for scoping and publishing variables and styles - Feature Request
Ignore parts of the token name for variables and styles - Feature Request
Theme Switcher for non-DS designers so I don't need variables anymore - Feature Request
Tokens applied with Figma UI as Styles or Variables are Fragile - Feature Request
Create Variable Collections With The Plugin's Order of Themes - Feature Request (blocked by Figma)
Show updated number of Variables (or styles) when exporting to Figma with updated values - Feature Request
💌 Visit https://feedback.tokens.studio/ to contribute or subscribe to updates.

Last updated
Was this helpful?