News for hackers. Stuff that matters.
Re:Tailwind Is the Worst of All Worlds by aidos on Tuesday July 22, 2025 @12:30PM (#44649476)
I do, and it’s great having the styles right there and hackable.
Re:Tailwind Is the Worst of All Worlds by ericwood on Tuesday July 22, 2025 @12:36PM (#44649567)
To be fair, this is the case with any styling approach; if the style is applied to the element, it's there for you to toy with in the inspector.
Re:Tailwind Is the Worst of All Worlds by recursive on Tuesday July 22, 2025 @12:35PM (#44649562)
How can styles ever not be hackable? Inline styles always take precedence. What can ever stop you from slapping in more inline styles?
Re:Tailwind Is the Worst of All Worlds by thaumasiotes on Tuesday July 22, 2025 @12:37PM (#44649590)
Huh? You have the styles right there and hackable regardless of your tooling. That's what browser inspectors do.
Re:Tailwind Is the Worst of All Worlds by pheres on Wednesday July 23, 2025 @05:49AM (#44657386)
No matter what you are using, they are always there, editable/hackable.

However I would argue that it makes it slightly harder to make any change. You no longer have a single class with all the styles that are affecting that element.

You can change the classes in the harder to read html, or override the single element. There is no longer the possibility to, for example, affect all .primary-btns.

Re:Tailwind Is the Worst of All Worlds by phatskat on Thursday July 24, 2025 @11:37PM (#44679359)
> You can change the classes in the harder to read html, or override the single element. There is no longer the possibility to, for example, affect all .primary-btns.

Sure there is, the only thing is that instead of having 20 <button class=“primary”> tags, you have a <ButtonPrimary> component. Change the component once, and all instances get the update.

This applies regardless of Tailwind. But if you’re repeating classes on the same kind of element over and over, then the question is less about how you’re styling it and more about how you’re organizing things.