News for hackers. Stuff that matters.
Re:Goodbye CSS Modules, Hello TailwindCSS by teitoklien on Thursday November 04, 2021 @04:29PM (#29112184)
Um you can in tailwind

Its like

md:p-2 which is for m devices , make padding as 2 Or xl:p-4 , which is for xl devices , make padding as 4

Similarly for hover or focus in tailwind its

bg-white hover:bg-black focus:bg-red Which says , by default keep background of this element white , when you hover over it keep it black and when you focus on it , keep it red

Works just fine, Give it a try and go through the docs of tailwind, navigating it using algolia, is a joy :D

Re:Goodbye CSS Modules, Hello TailwindCSS by hanspagel on Thursday November 04, 2021 @04:37PM (#29112275)
I think Adam knows what’s possible with Tailwind CSS [1], but wanted to point out that it’s not possible with just a style attribute. :-)

[1] https://github.com/tailwindlabs/tailwindcss/graphs/contribut...

Re:Goodbye CSS Modules, Hello TailwindCSS by adamwathan on Thursday November 04, 2021 @06:03PM (#29113050)
Haha correct, I was just explaining why inline styles aren't a suitable alternative to Tailwind. Tailwind can definitely do all that stuff!
Re:Goodbye CSS Modules, Hello TailwindCSS by teitoklien on Friday November 05, 2021 @06:52AM (#29117541)
Thanks a lot for making tailwind ! Haha i didnt check the username before replying, sorry xD

Your project is the reason why i like building web interfaces again.

Re:Goodbye CSS Modules, Hello TailwindCSS by Kiro on Thursday November 04, 2021 @06:53PM (#29113437)
In case the other comment isn't clear: you're replying to the creator of Tailwind.
Re:Goodbye CSS Modules, Hello TailwindCSS by teitoklien on Friday November 05, 2021 @06:50AM (#29117526)
F Amen