Рет қаралды 5,464
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