Re:Old Dogs, New CSS Tricks
by michaelnny on Monday May 27, 2024 @01:20AM
(#40487803)
Agreed, I still prefer to write my own CSS than using tools like Tailwind.
Re:Old Dogs, New CSS Tricks
by swagasaurus-rex on Monday May 27, 2024 @01:32AM
(#40487848)
For specific components, I use explicit CSS, but for layout <divs> I use the tailwind shorthand (flex, flex-row, mb-7) and just add those to my CSS as I go so I don't need tailwind as a dependency. It's the best of both worlds.
:has() and :is() are awesome.
One issue I’ve had with any of the newer CSS features is that, most of the people I work with don’t know what they do, because nobody use them. So, I have to explain myself in each pull request - but I guess that’s ok, because then people learn.