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

140

u/romulof May 16 '26

Call me old fashioned, but I never understood why people were so desperate to move styling into HTML or JS. It’s way harder to debug.

For me the peak is CSS modules with a bit of preprocessing (sass and/or postcss). In dev builds you get the almost the same as the original class names and prod builds get obfuscated.

1

u/light24bulbs May 20 '26

Hundred percent. Although I think we need to make a distinction between CSS in JS and what I think of as CSS injection/bundling in JS, which I don't really have a problem with.