this post was submitted on 19 Dec 2025
42 points (95.7% liked)
Programmer Humor
27965 readers
1351 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
sure, but both of those are significantly better than a css file. tailwind tends to match the internal structure better, css in js tends to match the component structure better.
tailwind doesn't have a runtime though, where css in js libs generally do. not that that's a big point. the difference is mostly preference
Doesn’t react have scoped styles like vue does?
yeah but you still basically end up duplicating the internal structure of the react component but in a css file then.
there's nothing definitive that makes one of those 3 options better, it's all preference. any of them fit better than global css though