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 or CSS formats
- Identifies linked variables*
- JSON: linked variables start with
$.VARIABLE.PATH
- 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
*Note: 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, 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, 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
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.