tailwindcss-figma-plugin icon indicating copy to clipboard operation
tailwindcss-figma-plugin copied to clipboard

[Feature Request] Provide a way to export current color styles as tailwind.config.js

Open leinardi opened this issue 5 years ago • 4 comments

Once #80 is done it would be nice to be able to export the current color styles to a tailwind.config.js. This would allow to easily modify the colors in the js file and then use the import feature to update the colors on Figma. It would also allow to update the tailwind.config.js if, for example, some color changes are made directly in Figma.

If there are forbidden characters in the color name (e.g. spaces), those can simply be removed while exporting.

leinardi avatar Mar 11 '20 17:03 leinardi

@impulse I think there was an error in what the PR from @KA95DEV was actually closing: there is no export feature in #87

Could this issue be reopen? I still think would be a really nice addition to be able to export the styles to a file, for example for people that is not using TailwindCSS but that want to simply batch edit their colors on a text editors instead of doing it in Figma, where it takes forever since you have to do it one by one.

leinardi avatar Mar 27 '20 11:03 leinardi

Yeah, 👍

ecklf avatar Mar 27 '20 12:03 ecklf

@leinardi @impulse here you go. this works for my needs https://www.figma.com/community/plugin/809138746390300395/%40nju33%2Ftailwindcss

daugaard47 avatar Jun 18 '20 05:06 daugaard47

@daugaard47 thanks! Will still look to add this in the feature to eliminate the need for installing multiple plugins.

ecklf avatar Jul 09 '20 06:07 ecklf