News for hackers. Stuff that matters.
Re:Tailwind Is the Worst of All Worlds by jakelazaroff on Tuesday July 22, 2025 @12:45PM (#44649720)
It's not quite apples-to-apples because the Tailwind code is using design tokens and the CSS is not. You should (for example) replace the long `box-shadow` value with `var(--shadow-md)`.

Anyway, to me this question is kind of like asking "Is it easier to break your writing into paragraphs, or write everything in one long block?"

Like, what would you think if I formatted my comment like this?

> It's not quite apples-to-apples because the Tailwind code is using design tokens and the CSS is not. You should (for example) replace the long `box-shadow` value with `var(--shadow-md)`. Anyway, to me this question is kind of like asking "Is it easier to break your writing into paragraphs, or write everything in one long block?" Like, what would you think if I formatted my comment like this?

Re:Tailwind Is the Worst of All Worlds by pyman on Tuesday July 22, 2025 @01:06PM (#44650108)
This isn't something a web developer should be doing in 2025. The styling should be generated by the software used to design the UI.

Why aren't the companies building design tools solving this?

Re:Tailwind Is the Worst of All Worlds by mdhb on Tuesday July 22, 2025 @01:51PM (#44650686)
I think you should find a new job.
Re:Tailwind Is the Worst of All Worlds by pyman on Tuesday July 22, 2025 @02:48PM (#44651410)
XML developer
Re:Tailwind Is the Worst of All Worlds by micromacrofoot on Tuesday July 22, 2025 @04:49PM (#44652829)
Adobe has been trying to build this product for 30 years and still haven't figured it out. Figma is trying and the best you can get is partially usable copy and paste CSS.

This is a "why don't they just make self-driving cars" question. The answer is that there are too many edge cases.

Re:Tailwind Is the Worst of All Worlds by pyman on Tuesday July 22, 2025 @07:20PM (#44654125)
I don’t think building autonomous cars is on the same level as writing CSS.

We're entering a phase where natural language becomes the main interface for html and css development. Companies like Vercel, Wix, and Framer are integrating AI to turn design prompts into working UI components.

This is only the beginning. Within 2 to 3 years, domain-specific language models, trained specifically on frontend code, are expected to become common.

Regarding Adobe, they never really understood developers.

Re:Tailwind Is the Worst of All Worlds by micromacrofoot on Wednesday July 23, 2025 @08:13AM (#44658317)
I'll believe it when I see it, and so far what I'm seeing is "a llm lied to me and deleted my codebase"
Re:Tailwind Is the Worst of All Worlds by crowcroft on Tuesday July 22, 2025 @01:10PM (#44650168)
Most people use Tailwind with components, and so when you talk about breaking things out into paragraphs, that would be the equivalent.

Sure that html looks a bit messy, but once you write it once you're never looking at it again. In your view files you're just writing.

  <Button>Click Me!</Button>
Or perhaps injecting variables etc.

  <Button color="red" style="outline">Click Me!</Button>
I'm not really trying to argue that Tailwind is better or worse, I'm just saying it's a valid way to do things and there's nothing inherently wrong or flawed with it.