Plugin Preview
About this plugin
Convert your Figma variables into Design Tokens, ready for consumption by Style Dictionary.
The plugin requires at least one variable to exist in the Figma document. With that present, pressing the "Export Variables" button will convert the variables table into JSON objects, in the following structure:
// collection-1.json { "collection-1": { "my-variable": { "value": "#ffffff" } } }
If variables are grouped the structure becomes:
// collection-1.json { "collection-1": { "group-name": { "my-variable": { "value": "#ffffff" }, "another-variable": { "value": "#000000" } } } }
If modes are used, those are added like so:
// collection-1-mode-one.json { "collection-1": { "group-name": { "my-variable": { "mode-one": { "value": "#ffffff" } } } } } // collection-1-mode-two.json { "collection-1": { "group-name": { "my-variable": { "mode-two": { "value": "#000000" } } } } }
If a description is added to a variable, it will be included as a comment:
// collection-1.json { "collection-1": { "my-variable": { "value": "#ffffff", "comment": "A Figma description" } } }
This plugin has primarily been built and tested for one specific team, your mileage may vary.
Plugin Details
Version | 3 |
---|---|
Created | September 28, 2023 |
Last Updated | February 22, 2024 |
Category | Software development |
Creator | Sam Smith |
Stats | 92 installs, 4 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:{"export": "export.html", "configure": "configure.html"}
- main:code.js
- Editor Types:figma
- Allowed Domains:
- none
More Like This
Discover other plugins in the Software development category.
Figma to Code (HTML, Tailwind, Flutter, SwiftUI)
Code Conversion Made Easy: Figma to Web & Apps
Anima - Figma to Code React, HTML, CSS, Tailwind, MUI (DevMode Inspect React / HTML / Vue / CSS)
Anima - AI Powered Design to code
Builder.io - AI-Powered Figma to Code (React, Vue, Tailwind, & more)
Export designs to responsive code (React, HTML, Vue, Tailwind, etc) with AI