Home

Awesome

Variables Import

This Figma plugin allows you to import design tokens in the Design Token Community Group format as Figma Variables.

This plugin does not contain a fully spec-compliant parser for the DTCG format and cannot handle every single valid token file—it's just a tool we built for internal use.

The following token types are supported:

The following are supported only when running a local copy of this plugin, not from the Figma Community:

Setup

Node.js

Install Node.js so you can build this project.

Install

Then install dependencies.

npm install

Build

Then you can build.

Dev

To enable all features, you need to open manifest.json and add the following line:

"enableProposedApi": true

Then, you can start a background build with:

npm run build:watch

Production

npm run build

enableProposedApi cannot be used in a plugin published to the Figma community, even internal to your own organization.

Adding to Figma

Add this plugin to Figma using "import new plugin from manifest".


The legal stuff

© 2023 Microsoft. MIT license.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.