Import from Figma variables

If you already have design tokens or variables in Figma, you can easily import them into Studio.

1

Open Figma and your design file

In Figma, ensure you have set up Figma Variables that you want to migrate.

2

Launch the Tokens Studio for Figma Plugin

  1. Go to Plugins > Tokens Studio for Figma.

  2. In the plugin’s interface, click New empty file.

3

Import Figma Variables

  1. In the plugin, click the Styles & Variables dropdown and select Import Variables.

  2. Answer questions about how you want to format your token values. For example, you can choose whether to convert numbers to dimensions, use rem values, etc.

  3. Click Import.

Tip: You might see collections such as “foundation” or “light” and “dark” in Figma, which will become token sets groups and the modes will become token sets in Studio. The Figma collections will be mapped as Theme Groups and modes as Theme Options in Studio.

4

Export your design tokens

  1. In the bottom-left of the plugin, click Export file/folder.

  2. Choose Multiple files and then Export.

  3. This will download a .zip file containing your tokens in JSON format. You can save this anywhere locally on your system.

5

Upload Tokens to Studio

  1. Return to the Tokens Studio app in your browser.

  2. Navigate to your Project Dashboard.

  3. Using the zip file downloaded above, click the Upload tokens or drag-and-drop the zip file into the upload area.

6

Reviewing imported tokens and themes

  1. Studio will parse the .zip file and create matching sets (e.g., foundation, light, dark).

  2. Verify that your sets and tokens appear correctly in the left-hand panel.

  3. Go to the Themes module on the left panel.

  4. Verify that your theme groups and theme options appear correctly.

7

Organizing and Theming Your Tokens

Studio supports theming through the concept of Theme Groups and Theme Options. This allows you to toggle between sets like light and dark, or any other variant (for more information on Themes check out Features > Themes).

The Figma collections will be created as Theme Groups and modes will be created as Theme Options.

  1. Open the Theme Panel • In your project, click the Themes tab.

  2. Verify that your collections have been created as Theme Groups (e.g., Color Mode, breakpoint)

  3. Verify that the modes in your collections have been created as Theme Options under the corresponding Theme Group (e.g., Light and Dark in Color Mode)

  4. Click on the Theme Option on the left panel to see the sets that are enabled for the Theme Option.

  5. Open the Tokens tab on the left panel. • At the bottom of the left-hand panel, you can select which theme is active (e.g., Default + Light or Default + Dark). • This will update the token values displayed in the UI.

Last updated