Back to Plugins
Styles to Variables

Styles to Variables

Convert your local styles to variables

variablesconverterdesign systemstylescolor styles

Plugin Preview

Styles to Variables preview

About this plugin

With the 2023config conference releasing more convenient variations, I created this plugin to help you quickly convert local color styles into variables and keep the original name and structure.


After conversion, you can change from calling styles to calling variables and delete previously converted styles


“Edit your existing color styles to use a variable instead of a hex code for an easier transition to using variables with components.”--Figma


Attention:

  1. Not all styles can be converted, currently only single, solid fills can.
  2. Styles with multiple layers of padding, gradients, images, and video are not converted, so do not remove them after conversion. This is because the variable function of Figma does not support these
  3. Of course, text styles, effects, and grid styles are not supported


Thank you for using this plugin. Have a nice day at work

If it helps you, you can buy me a cup of tea 🍵


随着 2023config 大会发布了更加方便的变体功能,因此我制作了这个插件,帮助你快速的将本地颜色样式转换为变量,并保持原有的名称和结构。


转换之后你可以从调用样式变为调用变量,并将之前已转换的样式删掉。


“编辑现有的颜色样式,使用变量而不是十六进制代码,以便更容易地转换为使用带组件的变量”--Figma


注意:

  1. 并不是所有的样式都会被转换,目前只有单层填充、并且是纯色才可以。
  2. 具有多层填充、渐变、图像和视频的样式不会被转换,因此转换后不要删除它们。这是因为 Figma 的变量功能不支持这些
  3. 当然,文本样式,效果,网格的样式也不支持


感谢你使用这个插件,祝你工作愉快,早日下班。


如果你想支持我,你可以给我 整杯龙井🍵,让我长长见识

Plugin Details

Version1
CreatedJune 24, 2023
Last UpdatedJune 24, 2023
Categoryshapes-colors
Creator三秋十李Sergio
Stats395 installs, 55 likes
PricingFree

Technical Details

  • API:1.0.0
  • main:code.js
  • Editor Types:
    figma

More Like This

Discover other plugins in the shapes-colors category.