this post was submitted on 19 Dec 2025
42 points (95.7% liked)

Programmer Humor

27965 readers
1327 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

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] brian@programming.dev 1 points 3 days ago (1 children)

it matches the component model of react etc

[–] RustyNova@lemmy.world 2 points 3 days ago (1 children)

I personally don't see it?

CSS in JS match the style more closely imo

[–] brian@programming.dev 1 points 2 days ago* (last edited 2 days ago) (1 children)

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

[–] rooroo@feddit.org 1 points 2 days ago (1 children)

Doesn’t react have scoped styles like vue does?

[–] brian@programming.dev 2 points 2 days ago

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