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:
string
number
,dimension
,duration
boolean
string
- Aliases to any other supported token in the same JSON and Figma file
The following are supported only when running a local copy of this plugin, not from the Figma Community:
- Aliases to any other supported token in a different JSON file and Figma file, if the other Figma file has published the variables to a team library
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.