Convert Figma variables to Tailwind in seconds

  Рет қаралды 5,464

Michal Guy

Michal Guy

Күн бұрын

Script: gist.github.co...
Here's how you tailwind.config.js should look like: gist.github.co...
Plugin used: Variables Import Export by Magic Grass www.figma.com/...
Note: you must have fs and lodash installed to make this work.
- Export variables through the plugin mentioned above
- Place the file alongisde your tailwind.config.js
- Place the script alongside your tailwind.config.js and tweak settings (explained in video)
- Make sure node, fs, lodash are installed (npm i -g lodash fs)
- Run `node convertVariables.js`
- Import all values to tailwind.config.js

Пікірлер: 7
@omadalosso
@omadalosso Жыл бұрын
Nice video. Just want to share that chatGPT does a pretty good work on converting the script output to a tailwindl.config theme object as well.
@michalguy
@michalguy Жыл бұрын
Why waste API tokens if you can do it for free though :P
@omadalosso
@omadalosso Жыл бұрын
@@michalguy It's pratical. Both approaches are really, but the chatGPT one won't require a runtime env to be available
@fabeiras
@fabeiras 9 ай бұрын
FENOMENAL!!! 😍
@tomvanhooreweder
@tomvanhooreweder Ай бұрын
Does this work with multiple modes? Like dark mode and light mode?
@michalguy
@michalguy Ай бұрын
@@tomvanhooreweder Haven't tried that one, let me know how would you like to use it! How are you tailwind vars for different modes set up?
@nasdastv1754
@nasdastv1754 Жыл бұрын
gj i sub to you man
13 Figma To React Converters Ranked
16:02
Jack Herrington
Рет қаралды 28 М.
I WISH I Knew These Tailwind Tips Earlier
9:15
Theo - t3․gg
Рет қаралды 185 М.
Sigma Girl Pizza #funny #memes #comedy
00:14
CRAZY GREAPA
Рет қаралды 2 МЛН
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 3,9 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 46 МЛН
W3C Design Tokens in CSS using Style Dictionary
19:50
Mykhaylo Ryechkin
Рет қаралды 2,9 М.
Updates Like These Make Tailwind So Fun
8:00
Josh tried coding
Рет қаралды 73 М.
Tailwind V4 Is Bigger Than Expected 👀
20:07
Theo - t3․gg
Рет қаралды 122 М.
Figma Tokens: Primitives, Semantic, and Component Tokens
9:40
Tailwind CSS V4 is SO Good!
8:51
Frontend FYI – by Jeroen
Рет қаралды 34 М.
Translating a Custom Design System to Tailwind CSS
10:10
Tailwind Labs
Рет қаралды 120 М.
Figma Dev Mode 🤯
14:26
Jesse Showalter
Рет қаралды 55 М.
Unbelievable AI Tool Converts Figma to Code🔥
17:46
Tech With Tim
Рет қаралды 292 М.
Bringing Figma to developers in VS Code
58:47
Visual Studio Code
Рет қаралды 40 М.
Sigma Girl Pizza #funny #memes #comedy
00:14
CRAZY GREAPA
Рет қаралды 2 МЛН