News for hackers. Stuff that matters.
Re:Tailwind CSS v3.3 by graboidhunter on Wednesday March 29, 2023 @09:51AM (#35357274)
It is a philosophical debate about the relationship between HTML and CSS.

The "traditional" approach to authoring HTML and CSS is predicated upon on idea of separating concerns. The idea is that your HTML should not depend on your CSS, and your CSS should not depend on your HTML.

The "utility-first" approach reacts by claiming this is wrong. It goes on to reason that either HTML depends on CSS or CSS depends on HTML, but neither are independent. This is what Adam Wathan calls "dependency direction."[0]

0. https://adamwathan.me/css-utility-classes-and-separation-of-...

Re:Tailwind CSS v3.3 by emmacharp on Wednesday March 29, 2023 @10:13AM (#35357572)
Again, it's not only philosophical nor spiritual. It has numerous practical implications for any dev engaged in Web work.
Re:Tailwind CSS v3.3 by graboidhunter on Wednesday March 29, 2023 @11:06AM (#35358337)
The debate is philosophical. The debate has practical implications. These two ideas are not mutually exclusive.
Re:Tailwind CSS v3.3 by emmacharp on Wednesday March 29, 2023 @04:02PM (#35362601)
I should have said: "it's more than a philosophical debate".