VarVar is a Figma plugin that allows you to export your Figma variables to JSON, CSV or CSS formats, making it easier to integrate your design tokens into your development workflow.
- Export Figma variables to JSON, CSV, CSS or JS formats
- Identifies linked variables*
- JSON: linked variables start with
$.VARIABLE.PATH
- JS: linked variables are referenced directly like
collection.mode.variable
- Numeric paths are converted to bracket notation:
collection.mode["500"]
- Numeric paths are converted to bracket notation:
- CSV: linked variables start with
=VARIABLE/PATH
- Option: Use row & column positions. This will produce instead a "formula-like" (i.e.
=E7
) linking in spreadsheet programs.
- Option: Use row & column positions. This will produce instead a "formula-like" (i.e.
- CSS: linked variables will be linked like so
--var-name: var(--VARIABLE)
- JSON: linked variables start with
- Preview exported data within the plugin interface
- Automatically download exported files
* When dealing with linked variables that have multiple modes, the plugin will only link to the first occurrence (i.e., the first mode).
- Open Figma and go to the Community tab
- Search for "VarVar"
- Click on the plugin and then click "Install"
- Open your Figma file containing variables
- Run the VarVar plugin from the Plugins menu
- Choose your desired export format (JSON, JS, CSV or CSS)
- Click "Export Variables"
- The exported file will be automatically downloaded
- Open your Figma file containing variables
- Run the VarVar plugin from the Plugins menu
- Choose your desired export format (JSON, JS, CSV or CSS)
- Click "Export Variables"
- The exported file will be automatically downloaded
- Toggle the "Preview output" switch to see the exported data within the plugin interface
- Use the "Select all" button and copy† (Ctrl/Cmd + C) the exported data to your clipboard
† Programmatically copying is currently not supported by Figma Plugin APIs.
To set up the development environment:
- Clone the repository
- Install dependencies:
npm install
- Run the development server:
npm run dev
To build the plugin for production:
npm run build
VarVar is developed and maintained by Atropical AS.