ecklf / tailwindcss-figma-plugin

Figma Plugin for Tailwind CSS
https://www.figma.com/community/plugin/738806869514947558/Tailwind-CSS
MIT License
269 stars 16 forks source link

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

Open leinardi opened 4 years ago

leinardi commented 4 years ago

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 commented 4 years ago

@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.

ecklf commented 4 years ago

Yeah, 👍

daugaard47 commented 4 years ago

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

ecklf commented 4 years ago

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