On this page
About Styles to Variables Converter
Styles to Variables Converter is a free Figma plugin published by Marcin Ukleja in 2023. It works in Figma Design and has 37,355 users and 580 likes on the Figma Community. It ranks #10 in Variables & Tokens on our lists.
In the developer's words
This plugin takes your color styles and converts them into new Figma variables, reflecting their structure, names and descriptions.
Local library
If you use your library locally only (in the same file), after running the plugin, you can safely delete all converted styles – layers that were using these styles will now have a variable bound to them.
Published library
In order to safely remove styles using published library, you should do it in 5 steps:
- Use plugin (it will preserve styles but with references to the newly created variables).
- Publish the library (with styles that now refer to variables instead of hex values).
- Update files with new styles (the styles will still be applied to layers, but now with bound variables; depending on the design operations, you may need to wait a few weeks until every current file is updated).
- Remove styles from the library.
- Publish library (for unknown reasons, I found this step unnecessary, but I would still recommend doing it).
How it works:
- Getting all local styles that are convertible (single, solid fills)
- Creating new variables based on gotten styles
- Binding variables back to styles definition
Keep in mind, that not every "color" style could be converted to variable. Styles with multiple fills, gradients, images, and videos won't be converted, so don't delete them after conversion.
Watch out for duplicate style names because while styles can have duplicate names, variables are still required to have unique names – the plugin skips such duplicates.
Since variables cannot use some characters (., $, {, }) in their name, they are replaced with underscores (_). In some cases it might result in additional duplicates that will be skipped.
Hopefully, this plugin will save you some time. I would greatly appreciate your feedback.
What's new
Version 5 · released Jun 30, 2023
- The plugin has been enhanced to handle duplicates more effectively. Previously, when converting styles, it would halt upon encountering a duplicated style name. However, with the latest update, the plugin now skips duplicates, allowing the conversion process to seamlessly continue. It's worth noting that while styles can have duplicate names, variables are still required to have unique names.
Permissions and privacy
Network access
Styles to Variables Converter 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 Styles to Variables Converter ranks
Styles to Variables Converter 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
Styles to Variables Converter FAQ
What does Styles to Variables Converter do?
Convert existing styles into new variables. It's a Figma plugin by Marcin Ukleja that runs in Figma Design.
Is Styles to Variables Converter free?
Yes. Styles to Variables Converter is free to install and run from the Figma Community, with no paid tier listed.
Is Styles to Variables Converter safe to use?
Figma plugins can only reach the internet through domains listed in their manifest. Styles to Variables Converter 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 Styles to Variables Converter?
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 Styles to Variables Converter?
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 Styles to Variables Converter: 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/styles-to-variables-converter/" target="_blank" rel="noopener"><img src="https://figmaplugins.co/badges/featured-dark.svg" alt="Styles to Variables Converter on figmaplugins.co" width="220" height="48"></a>