logoalt Hacker News

Moving away from Tailwind, and learning to structure my CSS

479 pointsby mpweiheryesterday at 9:14 AM305 commentsview on HN

Comments

edgardurandtoday at 2:02 AM

[flagged]

KaiShipsyesterday at 7:04 PM

[flagged]

3vo-aiyesterday at 7:08 PM

[flagged]

Serhii-Setyesterday at 2:21 PM

[dead]

taintlordyesterday at 5:04 PM

[dead]

huflungdungyesterday at 4:12 PM

[dead]

taintlordyesterday at 5:05 PM

[dead]

lawwantsin17yesterday at 4:12 PM

[dead]

EugeneOZyesterday at 3:36 PM

[flagged]

agus4nasyesterday at 3:27 PM

[flagged]

villgaxyesterday at 1:19 PM

Relying on React or Typscript in LLM era seems very stupid, just have the LLM setup whatever dom manipulation you want and have it write decent JS without slop. Far more offline compatible development almost negligible supply chain issues as well. At least ones you can control.

show 9 replies
raincoleyesterday at 3:37 PM

I think the (misuse of) so-called "separation of concerns" has been the most harmful thing that happened in web front end development. HTML can CSS are the same kind of concerns: the presentation layer. The idea that HTML is purely semantic and has nothing to do with presentation is just burying the head in the sand.

Separating HTML and CSS into different files is just like separating a bunch of methods/functions into different files, or splitting one monorepo into git submodules. Yeah, it sometimes makes sense, but if you're doing it for the sake of separating things then just stop.

I think the only point of Tailwind is to make front end devs realizing how much separation of concerns is misunderstood and misused as a dogma. Once you realize that you can ditch Tailwind if you like.

show 2 replies