DEV Community

Discussion on: I created a collection of UI Components for React built with Tailwind CSS

Collapse
 
enochndika profile image
Enoch Ndika

The main idea of this collection is to customize everything according to your needs. By default, all the classes defined for button will be preserved. if you want them to be purged automatically, you can only define the colour that you want to use (eg: primary only).

Collapse
 
akallabeth profile image
Graziano Statello

That makes sense thanks, I quite like the idea behind tailwindcss, but I wish it could allow to use javascript to build the classes...

Thread Thread
 
enochndika profile image
Enoch Ndika

It’s possible to use JavaScript to build classes with tailwindcss (Css in Js). Check out the library twin-macro

Thread Thread
 
akallabeth profile image
Graziano Statello

Interesting! I will have a look, thanks for it!