0
100
200
300
400
500
600
700
800
900
1000
1100
0
100
200
300
400
500
600
700
800
900
1000
1100

Styles to Variables Converter

Convert existing styles into new variables

by Marcin Ukleja

users
37K
likes
580
saves
7.1K
comments
94
FreeWorks inFigma Design
Price
Free
Latest version
v5 · Jun 30, 2023
First published
Jun 22, 2023
Publisher
Marcin Ukleja
Features

What Styles to Variables Converter does

Summarised from Marcin Ukleja's description on the Figma Community.

  • 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…

  • Published library

    In order to safely remove styles using published library, you should do it in 5 steps:

On this page
Overview

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:

  1. Use plugin (it will preserve styles but with references to the newly created variables).
  2. Publish the library (with styles that now refer to variables instead of hex values).
  3. 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).
  4. Remove styles from the library.
  5. Publish library (for unknown reasons, I found this step unnecessary, but I would still recommend doing it).

How it works:

  1. Getting all local styles that are convertible (single, solid fills)
  2. Creating new variables based on gotten styles
  3. 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.

Changelog

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.
Trust

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.

Rankings

Where Styles to Variables Converter ranks

Compare

Styles to Variables Converter alternatives

  1. 369K users7.6KFree + paid features

    The scalable design tokens solution for Figma

  2. 205K users3.1KFree + paid features

    Extended swap for variables/styles/components, export variables/styles, bulk-audit library & mockups

  3. 140K users3.3KFree + $15 upgrade

    Apply styles and variables to all your designs with one click!

  4. 91K users1.7KFree

    Export variables from one file and import them to another. Supports modes, references, and scopes.

  5. 5

    Styles to Variables

    by Yann-Edern Gillet

    90K users1.1KFree

    Convert your Figma Styles into Variables

  6. 6

    Variables Pro

    by Figterate

    82K users479Free

    Variables Pro | Swap, Import, Export Variables

FAQ

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.

For developers

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.

Styles to Variables Converter on figmaplugins.co

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>