this post was submitted on 30 Jun 2025
413 points (97.9% liked)

Programmer Humor

24648 readers
185 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
[–] ClassifiedPancake@discuss.tchncs.de 14 points 1 day ago (2 children)

It helps to avoid the specificity problem. You don’t have to manage a complicated class system, you just set styles directly on the elements. Yes this is pretty much what everyone agreed in the past was the worst thing to do but that was before things like CSS variables existed (which Tailwind uses excessively) that lets you control details like color and fonts from a single point. So you don’t have to go through every component to change the brand color.

At work we don’t use Tailwind often but in our React apps we mostly use Theme-UI which lets us write regular CSS on each element in a nice JSON format instead of the class name hell that is Tailwind. This is my preferred way.

[–] 5opn0o30@lemmy.world 7 points 1 day ago (1 children)

This is very informative. I avoided Tailwind for the reason you mentioned, but look closer now that I know the difference.

I think it's especially great for smaller apps/sites or prototyping. Setup is quick if you're already comfortable with CLI tools and configs. Or if you just want to get started immediately with no setup, just add a script into your site and when it needs to go into production later you can still do the setup process for a robust build.

[–] MonkderVierte@lemmy.zip 2 points 1 day ago (1 children)

Why Tailwind if you have CSS variables?

[–] 0x01@lemmy.ml 4 points 1 day ago

Tailwind uses css variables, it's really nothing more than a bunch of helper classes on top of css, it's not a replacement or anything.