Re:Knowing CSS is mastery to Front end Development
by zelphirkalt on Sunday March 02, 2025 @11:21AM
(#43231987)
If you got lots of "custom" styling for elements, why can't one write a CSS class just as easily and give the element that class? Why is Tailwind better? Am I not also writing the definitions in Tailwind then and assigning those classes to my element then? I don't get what the benefit is supposed to be.
[ Parent
| on HN ]
Re:Knowing CSS is mastery to Front end Development
by chamomeal on Sunday March 02, 2025 @02:41PM
(#43234185)
That’s exactly what I do for elements with lots of custom styling!
I guess I didn’t explain fully, but for things like the button example, I use regular ol css modules. Tailwind is for all the glue. And in my experience, most of the css you write when working on a feature is glue.