frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Unpopular Opinion: Bootstrap is a better front-end framework than Tailwind

11•pyeri•8h ago
Tailwind is the hot topic these days, and 9 out of 10 developers will probably suggest (or even force!) you to use Tailwind over Bootstrap. However, here are some logical and rational reasons why Bootstrap is actually the better framework:

1. Easier learning curve. Bootstrap 5 doesn't assume deep expertise in frontend design. The fact that backend developers can implement it easily without learning arcane concepts like state management or virtual DOM is highly underestimated.

2. Highly Utilitarian. While tailwind markets itself as a "utility first" framework, Bootstrap offers real utility without all the extra fuss. Navbars, modal popups, utility classes for colors and accents like `bg-primary`, `bg-secondary`, etc.— are all built-in and ready to use. How much more utilitarian could you get?

3. Creativity within Uniformity. This point is more about psychology than technology. One of the biggest criticisms of Bootstrap is that "most Bootstrap-built sites look similar". But this is a subjective opinion and ignores the fact that creativity doesn't always equate to reinventing the entire wheel. You can still be creative with configuring a wheel's spokes, tyre colors, tube pressure, etc. on an assembly line - In fact, such creativity is ideal when it helps increase productivity while delivering a standardized, user-friendly experience.

PS: Which one feels simpler and more utilitarian to you?

- Tailwind: `<button class="bg-sky-500 hover:bg-sky-600 active:bg-sky-700 text-white px-4 py-2 rounded-lg">Click me</button>` - Bootstrap: `<button class="btn-primary">Click me</button>`

Comments

stephenr•7h ago
> bg-sky-500 hover:bg-sky-600 active:bg-sky-700 text-white px-4 py-2 rounded-lg

What fresh fucking hell is this? I can't say I've had the (mis)fortune of being forced to work with Tailwind (I've seen the name enough to know it's something vaguely "CSS framework"-adjacent though).

Seriously, though what kind of crack induced nightmare state was required for someone to think up such an abomination, implement it, and then make it public for the world to see?

Furthermore, who in their right mind saw that and said "yep this is fine"?

pyeri•7h ago
Not a tailwind geek myself but I think how they justify is "better to have a little extra spaghetti in your html code than create a truck load of spaghetti in your app.css stylesheet."

The alternative to using tailwind here is to define the specific style elements for each one in the css stylesheets yourself with something like this:

.bg-sky-500 { background-color: blue; }

Tailwind proponents argue that they avoid this "stylesheet hell" by picking ready pre-defined tailwind classes like bg-sky-500, etc. Plus they also argue that this workflow will increase productivity by standardizing "style mindsets" of your dev team who all will think "blue" means "sky-500" (for example).

Maybe it has use cases in deep or professional design work but for most backend or full-stack devs, bootstrap is definitely better than meddling with this structure.

d1sxeyes•1h ago
Once you learn how to read it, it's actually pretty clear.

This element has a small amount of x and y padding that is suitable for (for example) keeping text away from the edge of the container. The text is white. The corners of this are rounded.

The background is the default intensity 'sky' colour, which darkens slightly on hover and darkens further when it's active.

You can take this from 77 characters to 189 like this:

    .button {
      background-color: #0ea5e9;
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
    }

    .button:hover {
      background-color: #0284c7;
    }

    .button:active {
      background-color: #0369a1;
    }
Tailwind simplifies consistency, and frankly is pretty readable. It's not like <button type="button" class="button">Button</button> is exactly the pinnacle of human clarity and simplicity in the first place.

Of course there are other ways to do it, but this faux outrage demonstrates not that this is some 'fresh fucking hell' or some 'crack induced nightmare', but rather that you simply don't get it.

Leftium•6h ago
One advantage I've noticed for Tailwind:

- If you just paste an outerHTML from the dev tools, AI coding agents can immediately figure out what it will look like; debug styles; etc.

I personally preferred PicoCSS for a long time. Pico was nice, but it injected a lot of CSS var noise into the dev tools and I started fighting with the breakpoints.

More recently, I've been just doing handcrafted CSS with a bit of OpenProps.

chistev•6h ago
This gets argued every week. It doesn't matter as long as you like what you like.
rozenmd•5h ago
Sure Bootstrap is better, for you.

Your postscript explains why: using the same "btn-primary" as every other user of the framework hints that you're not building something with its own visual identity.

For the rest of us, we throw that "bg-sky-500 hover:bg-sky-600 active:bg-sky-700 text-white px-4 py-2 rounded-lg" (or whatever color and shape matches our brand) into a component with a variant=primary property and call it a day. What developers actually see on a day-to-day basis is <Button variant="primary" />.

twelvedogs•41m ago
oof, that looks like absolute trash. i don't get why you want to use something less readable than css but to each their own i guess
speedgoose•3h ago
I like daisyui.
twoquestions•58m ago
Same, it feels like Bootstrap but much, much more customizable. When I'm not using ShadCN that's what I reach for by default, it's been much nicer to work with, personally.
grugdev42•2h ago
Better is subjective, but I will say:

Bootstrap seems to create less CSS soup, but more HTML soup. And Tailwind vice versa.

For an admin panel or something back office, I agree that Bootstrap seems simpler.

But for something user facing and working with a designer? Tailwind is easier to customise.

s1mplicissimus•2h ago
I've worked with both for years at this point. Imo they each have their sweet spot depending on what kind of page you are building.

Bootstrap is a huge time-saver when you are mostly fine with the defaults it ships. Extending it means writing a CSS file, which brings up the ancient problem of "gosh dang what's again all the places where this class/subselector is used?". Even changing colors is usually a trial and error effort, because different components use different variables as their basis. If you ever were to change font sizes, you will quickly notice that paddings etc. also need adjustment, so it's not as trivial as one might assume.

Tailwind's pain & gain come from the other direction: It's super easy to have every element look the way you want, but you also have to specify it for every element, which means high chances of missing something resulting in inconsistent appearance. It's not enough that I can abstract out the <Button> component, because the font size and line spacing must be visually(!) consistent with the <Select>, so those two are semantically linked together, but tooling can't help me reliably with ensuring that. Tailwind is, in comparison to CSS also way more limited in what can be expressed. Take something like this as an example of what is not expressible in tailwind:

``` .component { .listitem { p { color: red; } } .listitem.special { p { color: blue; } } } ```

gitgud•1h ago
Fine I’ll chime in… The main advantage tailwind has is that utility css can be composed without needing to worry about hierarchy. This is not true for bootstrap.

This makes tailwind much more predictable for component based UI architecture, in your example you would define a <Button> component so that verbosity of css is explicitly defined once where it’s used, not buried within a bootstrap framework somewhere.

If you’re not using a component based architecture, then tailwind is much more verbose, but still useful, as copying/pasting tailwind HTML is insanely easy and reliable. This is not true for bootstrap.

Bootstrap has it’s place, it’s good for cases where you’ I don’t care about the details of how it looks. But with component based architectures, tailwind is a much more flexible and better abstraction in my opinion.

sjoedev•1h ago
I wouldn’t put them in the same category. Bootstrap has a much stronger opinion about how you write and structure CSS, while Tailwind is a framework for building a style system and writing arbitrary CSS that conforms to it. In practice, Tailwind is actually much closer to writing vanilla CSS. It does come with a widely used default (and very good, IMO) style system, but you ultimately apply arbitrary CSS rules just like vanilla.

Tailwind is certainly divisive. It’s better suited to component-based frameworks than templates or plain HTML, so a person’s background likely contributes to how they perceive it. Personally, I’ve worked a lot with vanilla CSS, opinionated libraries like Bootstrap, and Tailwind, and opinionated libraries are the only one I have no desire to use again. I generally want Tailwind in component-based projects and vanilla CSS in template-based projects.

At the end of the day, pick what you like and use it. They all get the job done.

Ask HN: What are you working on? (January 2026)

250•david927•1d ago•817 comments

Unpopular Opinion: Bootstrap is a better front-end framework than Tailwind

11•pyeri•8h ago•13 comments

Ask HN: Where is all the protest music?

3•swiper_lux•3h ago•4 comments

Ask HN: Job seekers, what's working / not working?

16•Jabbs•1d ago•15 comments

Tell HN: DigitalOcean's managed services broke each other after update

61•neilfrndes•13h ago•43 comments

Ask HN: Erratic HN front page algorithm

6•7777777phil•21h ago•3 comments

Ask HN: Speculate About a Hypothetical Cyber Exploit That Would Leverage AI

3•burnerToBetOut•15h ago•1 comments

Ask HN: How do you automate your release notes?

9•dustfinger•21h ago•13 comments

Ask HN: When has a "dumb" solution beaten a sophisticated one for you?

12•amadeuswoo•2d ago•15 comments

Ask HN: Should I shutdown my 20 year old SaaS sideline?

3•pohwp•17h ago•12 comments

Tell HN: Mattermost "upgrade" to v11 enforces 10k UI message limit

5•nemosaltat•16h ago•3 comments

Ask HN: Senior engineering mngrs: how has AI changed your day-to-day work?

35•kitetm•3d ago•8 comments

Ask HN: Has anyone built payment flows inside AI voice calls?

6•wasiyc•1d ago•1 comments

Ask HN: Best way to find chill job where I can learn and grow as a swe

35•digitdiglet•4d ago•43 comments

Ask HN: Is Programming as a Profession Cooked?

19•fnoef•2d ago•32 comments

Ask HN: What business processes still waste time every week?

5•lzr_mihnea•1d ago•9 comments

Tell HN: Auto-download in Apple Podcasts is so unreliable it's basically useless

4•garyfirestorm•1d ago•4 comments

Ask HN: Is it time for HN to implement a form of captcha?

89•Rooster61•4d ago•136 comments

Ask HN: What are you proud of about doing for you health and wellness regularly?

11•nemath•23h ago•14 comments

Ask HN: Iran has now been offline for 100 hours. What can we "technically" do?

7•us321•16h ago•13 comments

Ask HN: Senior software engineers, how do you use Claude Code?

15•allie1•2d ago•13 comments

Ask HN: Would you pay for a privacy-first social platform?

11•sammiej•2d ago•10 comments

Why are so many images now in unusual file formats?

5•paulpauper•17h ago•7 comments

Tell HN: Get a dying iPhone 12 mini in 2026

28•remywang•4d ago•24 comments

Implementing NaN Boxing in a Stack-Based VM

5•tracyspacy•5d ago•0 comments

Aaron Swartz died 13 years ago today

91•vitaelabitur•1d ago•6 comments

Ask HN: Moved to SF to build a startup. What next?

7•kvaranasi_•1d ago•4 comments

Ask HN: What was the best sci-fi book of 2025?

14•Erikun•1d ago•1 comments

Ask HN: How would you decouple from the US?

38•yawa_me_worht•5d ago•22 comments

Ask HN: Cheaper Datadog anyone?

6•kvaranasi_•1d ago•11 comments