News for hackers. Stuff that matters.
Re:Tailwind CSS v3.3 by illiarian on Wednesday March 29, 2023 @11:10AM (#35358388)
Any UI beyond trivial lists will couple style and content.

You have a card? Boom, you need to couple styles for the title, for the content, for the footer etc.

You have a form? Boom, you need to couple styles with the form.

The idea that styles are somehow decoupled from content is funny idea that very rarely works out in practice.

Re:Tailwind CSS v3.3 by megous on Monday April 03, 2023 @11:28AM (#35425395)
You missed the point.

Would you copy paste around:

<form class="asd fasdf e4rwe sfdg sdfgbbv cxvbxcs asdf asdf wer wer gfdghdfgh fgh">

20x around your static website and keep it updated manually when someone "from design" wants to change the "form" look?

Or would you just <form class="classic-form"> and describe the style of that class of form in a single place?

I know what I'd do. :)