Open leinardi opened 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.
Yeah, 👍
@leinardi @impulse here you go. this works for my needs https://www.figma.com/community/plugin/809138746390300395/%40nju33%2Ftailwindcss
@daugaard47 thanks! Will still look to add this in the feature to eliminate the need for installing multiple plugins.
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.