variables2css

Convert Figma Variables to CSS, Sass, Tailwind, Json, Javascript (Styled-Components), Less or Stylus

by Kai-Uwe Hella

users
29K
likes
360
saves
3.6K
comments
140
FreeWorks inFigma DesignDev Mode
Price
Free
Latest version
v49 · Jan 19, 2025
First published
Jul 13, 2023
Publisher
Kai-Uwe Hella
Features

What variables2css does

What the plugin declares in its manifest.

  • Manifest

    Dev Mode panel

    Adds a panel to Dev Mode's Inspect tab.

On this page
Overview

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:

  1. Select your collection and now also choose specific modes within that collection.
  2. Choose your output language: CSS, Sass, Tailwind, Stylus, Json, Less, or Javascript (Styled-Components).
  3. Select your preferred conversion: Hex, RGB, or HSL for colors and PX or Rem for units.
  4. Include all themes if you've created themes in your collection, such as dark/light mode.
  5. Ignore aliases to export base values or use the root alias as the variable name instead of the semantic alias.
  6. Choose whether to add fallback for variables.
  7. Generate your variables

What's New:

  1. Saved export settings: Your last export settings are saved and automatically selected when you reopen the plugin.
  2. Font Weight Scope: When the variable is scoped exclusively by font weight, the number is now output without a unit.
  3. String Export:Now, you can also export your string variables easily.
  4. 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.
  5. New Design: Enjoy a completely redesigned interface that enhances usability and streamlines your workflow.

Notice:

  1. 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.
  2. 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.
Changelog

What's new

Version 49 · released Jan 19, 2025

The developer didn't publish release notes for this version.

Trust

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.

Rankings

Where variables2css ranks

Compare

variables2css 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

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.

For developers

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.

variables2css on figmaplugins.co

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