News for hackers. Stuff that matters.
Re:Goodbye CSS Modules, Hello TailwindCSS by 01brett on Thursday November 04, 2021 @05:35PM (#29112802)
Author here, I have a few custom classes that look like more traditional CSS. Tailwind gives an example[0] of how to do this in their docs. I have about 15 of these extracted classes. I use them for common styling patterns, such as transforming "flex items-center justify-center" to "flex-center," or to unify styling on components I haven't abstracted into a styled version, such as "listbox-option" or "flyout."

[0] https://tailwindcss.com/docs/extracting-components#extractin...

Re:Goodbye CSS Modules, Hello TailwindCSS by danielvaughn on Thursday November 04, 2021 @05:50PM (#29112935)
I've been considering an approach like this, but I don't want to risk going back down the path of "having to name things".