Variables Exporter For Dev Mode
Export Figma variables to JSON-based format
Plugin Preview
About this plugin
This plugin allows you to extract a comprehensive JSON representation of all the variables used within a Figma document. This JSON output can serve as a foundation for transforming design variables into cross-platform design tokens—for example, generating Tailwind CSS classes or integrating them into a design token pipeline like Style Dictionary.
The exported format is intentionally rich and flexible, enabling developers to write custom scripts or transformations as needed. However, the plugin also offers two configuration options that reduce the need for manual preprocessing—saving time and making integration into developer workflows more seamless:
Resolve Aliases
When enabled, this option resolves all aliases to their final, underlying values. The plugin supports cascading resolution, meaning it can follow chains of aliases until it reaches a concrete value.
A key feature here is the smart handling of multi-mode variable collections. If variables are connected through multi-mode collections, the plugin attempts to match modes based on slugified mode names. If no match is found, the target collection’s default mode is used instead.
Importantly, the resolution is always based on the original mode name—not the fallback.
Example:
The variable primary in the light mode of the semantics collection points to the variable blue in the primitives collection (which only contains the dark mode). That variable in turn points to blue-500 in the palettes collection, which contains both light and dark modes. In this case, resolution ultimately lands on blue-500 in the light mode, even though the intermediate blue variable belongs to a dark-only collection.
Exclude Hidden Variables
This option filters out any variables that have the "Hide from publishing" checkbox enabled in Figma.
When aliases are involved, any variable pointing to a hidden variable will still follow the alias resolution rules described above. This ensures that the exported JSON always contains usable and resolved values, even if some variables are marked as hidden in the Figma UI.
Plugin Details
| Version | 9 |
|---|---|
| Created | April 8, 2025 |
| Last Updated | May 21, 2025 |
| Category | Software development |
| Creator | Nicolas Bazille |
| Stats | 26 installs, 6 likes |
| Pricing | Free |
Technical Details
- API:1.0.0
- UI:dist/index.html
- main:dist/main.js
- Document Access:dynamic-page
- 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
Builder.io - Figma to Code & AI Apps (React, Vue, Tailwind, etc)
Export designs to clean, responsive code or turn Figma screens into AI apps and prototypes.
SkewDat
Skew any layer or group with all layers preserved to edit.