Variables and Styles
Export to Figma Overview

Export your Tokens as Styles or Variables

As of the plugin's V2 launch, we are happy to support 21 unique Token Types that can be exported to Figma as Styles or Variables.

The Export feature creates and updates Styles or Variables attached to the Tokens with the same name in the plugin. This allows Tokens Studio to be the single place to manage design Tokens, Styles, and Variables in Figma.

Each time you Export to Figma, you choose:

  • The type of Style or Variables to export.
  • Which Themes or Token Sets are included in the export.

Supported Token Types

You may select the name of the Token Type below to learn more about that token type or keep reading to learn more about Exporting to Figma.

Token TypeVariable TypeStyle TypeNotes
BooleanBooleannoneControls layer visibility, not component properties.
TextStringnoneReplaces placeholder text when applied to text layers.
ColorColorColorVariables referenced in the style value is possible.
Color - GradientnoneColorVariables referenced in the style value is possible.
Color - Modified (pro)ColorColorModified colors won't show their references in variables.
OpacityNumbernoneControls layer visibility applied as a number variable.
DimensionNumbernoneConverted to a unitless number. \Rem units are converted to pixel equivalent.
NumberNumbernoneIf units are added to the token there are unexpected results (known issue).
SpacingNumbernoneIf units are added to the token, the unit will be dropped.
SizingNumbernoneIf units are added to the token, the unit will be dropped.
Border WidthNumbernoneIf units are added to the token, the unit will be dropped.
Border RadiusNumbernoneIf units are added to the token, the unit will be dropped.
Border (composite)nonenoneVariables referenced in the token value will appear for color and border-width properties.
Box Shadow (composite)noneeffectVariables referenced in the token value will appear for color and dimension properties.
Typography (composite)nonetextVariables referenced in the token value will appear in the text style for available properties.\The 'particle' Tokens will be exported as variables according to their token type.
Font FamilyStringnoneExported as a part of the Text style created by the Typography Token (composite).
Font WeightString / NumbernoneExported as a part of the Text style created by the Typography Token (composite).
Font SizeNumbernoneExported as a part of the Text style created by the Typography Token (composite).
Line HeightNumbernoneExported as a part of the Text style created by the Typography Token (composite).
Letter SpacingNumbernoneExported as a part of the Text style created by the Typography Token (composite).
Paragraph SpacingNumbernoneExported as a part of the Text style created by the Typography Token (composite).
Text CasenonenoneExported as a part of the Text style created by the Typography Token (composite).
Text DecorationnonenoneExported as a part of the Text style created by the Typography Token (composite).

How it works

Once you have created your Tokens in the plugin, select the Styles & Variables Button from the Tokens page.

  • Select Export styles & variables.
  • Review the Export to Figma Options and select your configuration based on your desired task.
  • Choose to Export as Themes or Token Sets
    • Select which Theme or Sets to export
  • Confirm and complete the export.

Export to Figma options

The Export to Figma options allow you to make some key configurations:

  1. Export your Tokens as Variables, Styles or both.
    • Define which types of variables you want to export.
  2. Choose any Style specific settings.
    • Style name modifications.
    • Style values with variable references.
  3. Choose any update-specific settings.
    • Token name changes.
    • Remove styles and variables no longer connected to a token.

Read the Export to Figma Options guide for details and troubleshooting tips.

Choose to export from Themes or Token Sets

Depending on your Tokens Studio licence and your Token Structure, you can choose to export to Figma connected to Themes or Token Sets.

Themes (pro)

  • Exports your selected Themes to Variables with multiple modes within a collection.
  • Maintains a connection with exported Styles and Variables for seamless updates.
    • Across multiple Figma files if desired.
  • Requires a pro licence for Tokens Studio

Read the Export to Figma from Themes guide for detailed instructions.

Token Sets

  • Exports your selected Token Set to Variables as a separate collections
    • Multiple modes are not supported.
  • Tokens aren't always connected to the Styles and Variables created from Token Sets.
    • When you update your Tokens, you may have to replace existing Styles and Variables.

Read the Export to Figma from Token Sets guide for detailed instructions.

Once you've confirmed your selection, the Styles or Variables you selected will be Exported to Figma.

Skipped Tokens

There are some exceptions where the plugin has to 'skip' exporting some of your Tokens to variables.

Read the Skipped Variables guide for more details.

Styles with Variable references

The plugin supports Styles with Variable references. This allows you to create Color, Text, and Effect Styles with values connected to Variables, all powered by your Design Tokens.

This workflow requires a few steps to get started.

Read the Styles with Variable References guide for detailed instructions.

Resources

Figma resources:

Community resources:

💡 Something to share? Submit it here!

Known issues and bugs

🐞 If you are experiencing an issue not listed here, please reach out to us on the Troubleshooting channel of our community Slack, or submit it on our feedback tool.

Requests, roadmap and changelog

💌 Visit https://feedback.tokens.studio/ to contribute or subscribe to updates.