Export/Import Variables

Export variables from one file and import them to another. Supports modes, references, and scopes.

by Honza Toman

users
91K
likes
1.7K
saves
14K
comments
87
FreeWorks inFigma Design
Price
Free
Latest version
v2 · Aug 23, 2023
First published
Jul 1, 2023
Publisher
Honza Toman
Features

What Export/Import Variables does

Summarised from Honza Toman's description on the Figma Community.

  • Supported features

    All variable types (color, string, number, boolean). Value aliases (when it’s from the same collection)

  • Updating existing collection (instead of creating duplicates)

    The plugin now allows updating existing collections.

  • Known limitations

    References from different collections will get detached. Variable will use correct raw value instead.

On this page
Overview

About Export/Import Variables

Export/Import Variables is a free Figma plugin published by Honza Toman in 2023. It works in Figma Design and has 90,571 users and 1,733 likes on the Figma Community. It ranks #4 in Variables & Tokens on our lists.

In the developer's words

Export variables from one file and import them to another. It's great for migrating libraries, or when you downloaded library from the community and you’d like to import or update variables in your existing design system.

Supported features

  • All variable types (color, string, number, boolean)
  • Value aliases (when it’s from the same collection)
  • Variable info (description, scopes, code syntax)
  • Multiple modes
  • Update matching collection (instead of adding a new one)

Instructions

  1. Open plugin in the file with collections that you want to export
  2. Export selected collection to JSON
  3. Open plugin in the file where you want to import variables into
  4. Select or drop collection JSON to plugin
  5. Enjoy the collection in a new file 🎉

Updating existing collection (instead of creating duplicates)

The plugin now allows updating existing collections. If a collection with a matching name exists, you'll have the option to update it instead of creating a new one. The plugin will attempt to match variables and modes based on their names. If a match is found, the plugin will update the values of those variables. If there are non-matching modes or variables, the plugin will create them.

Known limitations

  • References from different collections will get detached. Variable will use correct raw value instead. I plan to add support for cross-referenced variables later.
  • Making changes to your collections in Figma file requires either relaunching the plugin or refreshing the collections.
  • Order of the token gets sometimes exported incorrectly.

This plugin is created by Jan Toman. If you have ideas for improvements, or encounter any issues, please let me know.

Changelog

What's new

Version 2 · released Aug 23, 2023

  • Added support for code syntax
  • Added support for "Hide from publishing"
  • Fixed description import
  • Fixed error caused by recent Figma API changes in color scopes (STROKE → STROKE_COLOR)
Trust

Permissions and privacy

Network access

This plugin's manifest doesn't declare its network access, which is common for older plugins. Figma shows a warning on the Community page for plugins like this.

Extra permissions

None beyond the standard access to the file you run it in.

Read from the plugin's published manifest.

Rankings

Where Export/Import Variables ranks

Stacks

Stacks with Export/Import Variables

Compare

Export/Import Variables alternatives

  1. 369K users7.6KFree + paid features

    The scalable design tokens solution for Figma

  2. 205K users3.1KFree + paid features

    Extended swap for variables/styles/components, export variables/styles, bulk-audit library & mockups

  3. 140K users3.3KFree + $15 upgrade

    Apply styles and variables to all your designs with one click!

  4. 4

    Styles to Variables

    by Yann-Edern Gillet

    90K users1.1KFree

    Convert your Figma Styles into Variables

  5. 5

    Variables Pro

    by Figterate

    82K users479Free

    Variables Pro | Swap, Import, Export Variables

  6. 6

    Design Tokens

    by Lukas Oppermann

    65K users2KFree

    Export design tokens to JSON or GitHub.

FAQ

Export/Import Variables FAQ

What does Export/Import Variables do?

Export variables from one file and import them to another. Supports modes, references, and scopes. It's a Figma plugin by Honza Toman that runs in Figma Design.

Is Export/Import Variables free?

Yes. Export/Import Variables is free to install and run from the Figma Community, with no paid tier listed.

How do I install Export/Import Variables?

Open it on the Figma Community, or search for it in the Actions menu (Cmd/Ctrl + K) inside any file you can edit. See how to install Figma plugins.

What are the best alternatives to Export/Import Variables?

By user count, the closest alternatives are Tokens Studio for Figma, Design System Organizer and Styles & Variables Organizer. Compare all of them on the best Figma plugins for variables & tokens.

For developers

Built this plugin?

Use this page as a landing page for Export/Import Variables: link to it from your site, README or launch posts, or add a badge. Pick a style and copy the code.

Export/Import Variables on figmaplugins.co

Style

Label

Size

Code

<a href="https://figmaplugins.co/plugins/export-import-variables/" target="_blank" rel="noopener"><img src="https://figmaplugins.co/badges/featured-dark.svg" alt="Export/Import Variables on figmaplugins.co" width="220" height="48"></a>

Want it featured on figmaplugins.co? Submit it for review