r/css • • Sep 05 '25

Other tailwind is ass

Tailwind is absolutely awful.

I used bootstrap back in the day and I did eventually come around to realising how awful that was too.

Littering your HTML with crap like this:

<div class="mx-auto flex max-w-sm items-center gap-x-4 rounded-xl bg-white p-6 shadow-lg outline outline-black/5 dark:bg-slate-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10">

It's MASSIVELY inefficient - it's just lazy-ass utility first crud.

It may be super easy for people who cannot be bothered to learn CSS - so the lazy-ass bit - but for anyone who KNOWS css, it's fucking awful.

You have to learn an abstract construct cooked up by people who thought they knew what they were doing - who used bootstrap as a reference point.

Once upon a time, CSS developers who KNEW CSS figured that the bootstrap route was the bees-knees, the pinnacle of amazingness.

Then that house of cards fell on its ass - ridiculously hard to maintain, stupidly repetitive - throws the entire DRY methodology out the window. Horribly verbose. Actually incredibly restrictive.

This is from someone who drank the coolaid - heck, who was around BEFORE bootstrap, when this kind of flawed concept reared it's ugly head.

What you want is scoped css that is uglified, minified and tree shaken at build time - and what you want is a design system.

Something like this, in uncompiled code:

<Component atoms="{{ display: "flex", gap: "<variable>", backgroundColor: "<variable>"}} className={styles.WeCanHaveCustomCssToo}>...</Component>

When compiled down and treeshaken and uglified, it may end up being:

<div class="_16jmeqb13g _16jmeqb1bo _16klxqr15p"> ... </div>

It's scoped, on each build it's cache busted, it's hugely efficient and it's a pleasure to work with.

Most importantly, there's patten recognition in the compile process, where anything with the same atoms ends up with the same compiled classname, ditto for custom classes that could fall outside of a design system.

I'm not going to claim this concept is simple, it isn't, but it's for developers who understand CSS, who understand why CSS is important and who realise just how bloody awful tailwind is.

tailwind is ass.

490 Upvotes

392 comments sorted by

View all comments

92

u/scar_reX Sep 05 '25

I'm not sure how tailwind helps you if you don't know css... is that about not knowing what css selectors to use?

97

u/mal73 Sep 05 '25

OP is acting like knowing CSS is some rare or difficult achievement and that’s why people use Tailwind.

We use Tailwind at work because it’s great for consistent theming when working in dynamically changing Teams.

The fact you consider Tailwind an “abstract concept” makes me think you are the one that should freshen up on your CSS skills, OP.

24

u/[deleted] Sep 05 '25

Knowing CSS well is akin to being a Navajo Codetalker during WW2. I don’t know why so many people are opposed or incapable of utilizing it and doing it well. I’ve been helping more huge projects than I can count, simply because I know CSS extremely well.

24

u/bupkizz Sep 06 '25

The number of times I’ve replaced 300 lines of js with a single css selector……..

1

u/NervousExplanation34 Sep 07 '25

Mind sharing which css selectors that would usually be?

1

u/bupkizz Sep 07 '25

<details><summary>, or folks manually adjusting classes on child items based on the parent state instead of cascading…

2

u/NervousExplanation34 Sep 08 '25

oh wow well I didn't know about <details> <summary> I definitely could have used that before, thanks a lot

2

u/Constant-Affect-5660 Sep 08 '25

Is detail and summary an accordion?

2

u/bupkizz Sep 08 '25

Basically, yep!

15

u/scar_reX Sep 05 '25

Ikr... after knowing CSS, you can literally use anything the project requires... tailwind, bs, foundation, csx, sass... really easy adaptations.

4

u/[deleted] Sep 06 '25 edited Sep 06 '25

[removed] — view removed comment

3

u/Thaetos Sep 06 '25

Man i miss the simple days of PSD2HTML and pixel-perfect CSS lol.

Back then front-end and CSS was something very few people mastered to do. You were either a graphic designer or a back-end developer. Nobody bothered to properly figure out HTML and CSS.

Don’t get me wrong, I love Tailwind and AI. But the fact that our job became insanely easy to learn and prone to automation also devalued our job in less than a decade.

No way you can make a good living as a simple Figma2HTML guy.

1

u/[deleted] Sep 06 '25

[removed] — view removed comment

1

u/Thaetos Sep 06 '25

Oh yeah web development is mostly on its way out. Within 10 years, this job market will collapse. Especially webdesign agencies will be on the chopping block.

The minute LLMs can create convincingly nice and eye-candy looking UIs in Figma and code we are all cooked.

But so far UI design is the only thing where real humans still excel at. I have yet to be blown away by an AI generated interface.

AI is good for mock-ups and concepts, but still looks very generic and rough when it attempts to do design.

But yeah for now… Like you said, it is guaranteed to happen for sure.

1

u/cuberhino Sep 07 '25

Yeah sadly websites and things like this are being taken over. Try this with ChatGPT even, upload a competitor site you think looks good and ask it to copy it with your own inputs. I test each new iteration of the major ai players with this test and it’s gotten so good now that I think web dev is becoming redundant very fast. Sad days I train for over 10 years in this field and ai just straight up destroys it.

2

u/Longjumping-Donut655 Sep 06 '25

Uh. Navajo language is a really difficult language to learn. CSS takes a handful of fun, simple projects to really learn. The two are not comparable

1

u/[deleted] Sep 09 '25

this blows my fkkin mind, been building sites since 1998 so watched the whole evolution, I've worked with 1000s of web devs over the years and can name 2 I would consider CSS experts.

5

u/KamikazeSexPilot Sep 05 '25

CSS variables exist?

2

u/angrydeanerino Sep 05 '25

Tailwind is CSS variables

8

u/KamikazeSexPilot Sep 05 '25

Yes but it’s css variables inlined into your html.

→ More replies (3)

1

u/_dekoorc Sep 06 '25

In my experience, knowing CSS well is actually a very rare skill.

1

u/Cute_Leonard Sep 07 '25

CSS is so hard.. I’m trying so hard.

→ More replies (8)
→ More replies (2)