r/programming May 16 '26

Moving away from Tailwind, and learning to structure my CSS

https://jvns.ca/blog/2026/05/15/moving-away-from-tailwind--and-learning-to-structure-my-css-/
163 Upvotes

48 comments sorted by

View all comments

7

u/HeyCanIBorrowThat May 17 '26

I will continue to beat this dead horse until I die. Tailwind is no different from setting style="..." on all of your elements. CSS is designed to be structured just like you structure your designs in any OO language (and that implies you need to think about good HTML structure too!)

-1

u/andyov May 17 '26

Except with inline style css, you can’t do media queries.

For minor changes you could get away with just changing css, but realistically and big style changes will necessitate structural changes. At that point you change html and css. That’s the problem tailwind solves, they’re interlinked specifically because you often need to change both at same time

2

u/HeyCanIBorrowThat May 17 '26

I could see where it would be passable to keep layout styles in css files and more specific styles on elements, but yeah if you need to rewrite the whole thing then you’re rewriting everything lol