Export Figma variables
by Дмитрий Селивестров
A plugin for exporting figma variables to css and ts
Installs
75
Likes
10
Users
1,435
Views
4,607
Preview
About this plugin
Plugin exports variables to ts-code or css-code. Ts-code is especially useful if you use css-in-js libraries.
The plugin implies that you have base, semantic and component layers of variables. Component layer can use variables from other layers and reference on variables from its own layer. Semantic layer should only use variables from the base layer.
For example, base layer can have variables like color/blue/100, color/blue/200, color/red/100 for colors and space/100, space/100 for spacings and so on.
Semantic layer can have variables like color/primary, color/on-primary and so on. All variables should use variables from base layer.
Component layer must have variables grouped by components like button/color/text, button/color/bg, button/color/bg-hover, tooltip/color/text and so on. Top-level groups must be named by component names. These ones will be used for generating corresponding file names.
UsageIf you want to generate code for semantic layer you should specify only base collection. The component collection must be empty. The plugin generates two files: variables.css and variables.ts.
If you want to generate code for component layer you should specify base collection and component collection as well. In this case, plugin generates files only with ts-code.
More software development plugins
View allBuilder.io - Figma to Code & AI Apps (React, Vue, Tailwind, etc)
by Steve Sewell
Export designs to clean, responsive code or turn Figma screens into AI apps and prototypes.
Anima: Convert Figma to HTML/CSS/React/Tailwind,Vibe code,DevMode Inspect/Run React/HTML,App builder
by Anima
Anima - AI Design to code, Vibe code, Vibe design
SkewDat
Paidby Unfold
Skew any layer or group with all layers preserved to edit.
Zeplin
Paidby Zeplin Crew
Design tools are for designing. Zeplin is for clear, structured design delivery.