News for hackers. Stuff that matters.
Re:Tailwind CSS and the death of web craftsmanship by ehutch79 on Wednesday August 02, 2023 @03:15PM (#36975678)
The tailwind developers have specifically said @apply is a codesmell and they regret adding it.

If you're just going to stick the tail wind classes in a class like this, why bother? just use css vars.

Re:Tailwind CSS and the death of web craftsmanship by yawnxyz on Wednesday August 02, 2023 @03:22PM (#36975794)
I think CSS vars are complementary (I also use them in projects). There's probably a way to do this more elegantly, but with tailwind classes in a class I can quickly re-apply certain styles across projects / microsites.
Re:Tailwind CSS and the death of web craftsmanship by ehutch79 on Wednesday August 02, 2023 @03:25PM (#36975840)
You don't need tailwind for that? that's how css works.