On this page
About variables2css
variables2css is a free Figma plugin published by Kai-Uwe Hella in 2023. It works in Figma Design and Dev Mode and has 28,830 users and 360 likes on the Figma Community. It ranks #13 in Variables & Tokens on our lists.
In the developer's words
Convert Figma design variables, including colors and numbers, into CSS, Sass, Tailwind, Stylus, Json, Less or Javascript (Styled-Components) variables to save time and ensure accuracy. Use it in Figma: Design and Development mode.
How to use it:
- Select your collection and now also choose specific modes within that collection.
- Choose your output language: CSS, Sass, Tailwind, Stylus, Json, Less, or Javascript (Styled-Components).
- Select your preferred conversion: Hex, RGB, or HSL for colors and PX or Rem for units.
- Include all themes if you've created themes in your collection, such as dark/light mode.
- Ignore aliases to export base values or use the root alias as the variable name instead of the semantic alias.
- Choose whether to add fallback for variables.
- Generate your variables
What's New:
- Saved export settings: Your last export settings are saved and automatically selected when you reopen the plugin.
- Font Weight Scope: When the variable is scoped exclusively by font weight, the number is now output without a unit.
- String Export:Now, you can also export your string variables easily.
- Mode Selection:You can now select not just a collection but also specific modes within that collection, giving you greater flexibility and control over your design exports.
- New Design: Enjoy a completely redesigned interface that enhances usability and streamlines your workflow.
Notice:
- RGB Output Update:We've updated the RGB format to the new CSS standard: use rgb(255 0 0) for opaque colors and rgb(255 0 0 / 0.5) for transparent colors.
- In the JSON export, the attribute previously known as "color" has been renamed to "value" within the color array objects. This change affects how colors are represented in the exported JSON. Please update your integrations accordingly.
What's new
Version 49 · released Jan 19, 2025
The developer didn't publish release notes for this version.
Permissions and privacy
Network access
variables2css declares no network access, so it runs entirely inside Figma and can't send your file anywhere.
Extra permissions
None beyond the standard access to the file you run it in.
Read from the plugin's published manifest.
Where variables2css ranks
variables2css alternatives
- 1

Tokens Studio for Figma
by Jan Six
369K users7.6KFree + paid featuresThe scalable design tokens solution for Figma
- 2

Design System Organizer
by Arthur
205K users3.1KFree + paid featuresExtended swap for variables/styles/components, export variables/styles, bulk-audit library & mockups
- 3

Styles & Variables Organizer
by Chenmu Wu
140K users3.3KFree + $15 upgradeApply styles and variables to all your designs with one click!
- 4

Export/Import Variables
by Honza Toman
91K users1.7KFreeExport variables from one file and import them to another. Supports modes, references, and scopes.
- 5

Styles to Variables
by Yann-Edern Gillet
90K users1.1KFreeConvert your Figma Styles into Variables
- 6

Variables Pro
by Figterate
82K users479FreeVariables Pro | Swap, Import, Export Variables
variables2css FAQ
What does variables2css do?
Convert Figma Variables to CSS, Sass, Tailwind, Json, Javascript (Styled-Components), Less or Stylus. It's a Figma plugin by Kai-Uwe Hella that runs in Figma Design and Dev Mode.
Is variables2css free?
Yes. variables2css is free to install and run from the Figma Community, with no paid tier listed.
Is variables2css safe to use?
Figma plugins can only reach the internet through domains listed in their manifest. variables2css declares no network access, so it runs entirely inside Figma and can't send your file anywhere. As with any plugin, check the developer's privacy policy before using it on client work.
How do I install variables2css?
Open it on the Figma Community, or search for it in the Actions menu (Cmd/Ctrl + K) inside any file you can edit. See how to install Figma plugins.
What are the best alternatives to variables2css?
By user count, the closest alternatives are Tokens Studio for Figma, Design System Organizer and Styles & Variables Organizer. Compare all of them on the best Figma plugins for variables & tokens.
Built this plugin?
Use this page as a landing page for variables2css: link to it from your site, README or launch posts, or add a badge. Pick a style and copy the code.
Style
Label
Size
Code
<a href="https://figmaplugins.co/plugins/variables2css/" target="_blank" rel="noopener"><img src="https://figmaplugins.co/badges/featured-dark.svg" alt="variables2css on figmaplugins.co" width="220" height="48"></a>Want it featured on figmaplugins.co? Submit it for review
