r/webdev • u/mrholek • Oct 23 '26
Bootstrap 5 users: do you actually want the new Bootstrap 6 class naming?
We're working on CoreUI v6, and decided not to follow Bootstrap 6 Alpha's new Tailwind-style class naming.
For example:
| Bootstrap 5 / CoreUI v6 | Bootstrap 6 Alpha |
|---|---|
d-md-none |
md:d-none |
col-lg-6 |
lg:col-6 |
justify-content-md-end |
md:justify-content-end |
We're adopting modern CSS improvements, but keeping the familiar class names to avoid unnecessary breaking changes.
Our thinking is that developers maintaining existing Bootstrap applications probably value compatibility more than a different naming convention.
But maybe we're wrong.
If you're currently using Bootstrap 5 in production, would you prefer to keep the existing class names, or do you see real benefits in switching to the new syntax?
Especially interested in hearing from people maintaining larger applications.
84
u/ShawnyMcKnight Oct 23 '26
It's just copying tailwind's convention. I don't mind it, but it would be a pain if I wrote in bootstrap classes for over a decade.
35
u/Dunc4n1d4h0 Oct 23 '26
Keep old good class names. This is Bootstrap. Let it be Bootstrap. Let tailwind switch :-)
8
u/Fair_University1389 Oct 23 '26
you already decided, the post is a survey to collect permission.
the prefix up front is the one thing bootstrap 6 got right. d-md-none buries the breakpoint in the middle so you cant grep for md, cant sort for it, cant see at a glance how much of a file is md-only. md:d-none reads left to right and it's what tailwind and unocss already do, nobody has to learn anything. fine, compat matters if you have 400 templates, but that person isnt moving to v6 this year or the next one, theyre sitting on 5 until it stops getting patches. meanwhile anyone starting fresh inherits the old syntax forever.
at some point the compat argument is just not wanting to write the migration guide.
13
u/web-dev-kev Oct 23 '26
While I don't overly like the trailwind style (personal preference), I think it's a good change.
So while it'll cause friction for me personally, I think it's a good change overall.
15
u/Herr_Gamer Oct 23 '26
Migrating these class names is trivial, if you want to make it easy for users just package a tool that's internally just a long awk command.
I would go with the v6 customs so as not to fracture the ecosystem. Every other application that builds on v6 will use the new class names, so why have yours be an unexpected edge case where v6 components are used but with v5 class names?
Makes no sense.
10
u/binocular_gems Oct 23 '26
No, and I don’t understand bootstraps rationale here. Is there a GitHub issue that explains why they’re changing class names to this style? It’ll be a tremendous amount of work for us to upgrade. We will, but it’ll be painful.
6
u/Cirieno Oct 23 '26
Would it be too hard to offer both versions? Thus an upgrade path for those who can't change their code easily, and a version for new development.
3
u/licorices Oct 23 '26
If I am updating from a previous version, then yeah, not having to go and migrate to a new naming scheme.
I do however think this is bad in the long term. The benefit of adopting the Tailwind naming scheme is easier migration from Tailwind, as well as more familiarity. I also think it has more advantages, such as being easier to at a glance see it exists, and easier to do a find in a project for instances of it.
So yeah, your assumption is probably right, current users would value it more. But I think it is hard for people to justify switching to it if it is less plug-and-play.
3
u/coyoteelabs Oct 23 '26
Won't be upgrading to bootrap 6 because of that.
Just because tailwind does it, doesn't mean it's good. The colon char has a special meaning in css, meaning that if you want to target a class that uses it, you need to escape it with a slash ("\:").
Same thing goes for javascript.
I see absolutely no benefit to the "new" class names besides looking "pretty" in the code editor.
And yes, I am currently using bootstrap 5 for existing and current new in progress projects. Will probably move to CoreUI v6 or others.
4
u/creaturefeature16 Oct 23 '26
It couldn't be more obvious they are just trying to capture Tailwind users.
32
u/EliSka93 Oct 23 '26
I find them more readable than the old ones.
Makes less sense to me than
Though I don't really have a horse in this race. I have used Bootstrap before and may again, but I'm currently not using it.
1
u/mrholek Oct 23 '26
One thing I'm curious about after reading these replies: how many of you are actually using Bootstrap in production today?
I suspect the priorities might be quite different between developers maintaining existing Bootstrap applications and those evaluating it for a new project.
For existing users, compatibility may matter more. For new users, consistency and readability might win.
Would be interesting to know which group most of these opinions are coming from.
4
u/Full_Tooth_a Oct 24 '26
I agree that the new names read more naturally, but the colon could complicate migration. `md:d-none` is valid in HTML, while `querySelector('.md:d-none')` can fail because it interprets the colon as CSS syntax unless the class is escaped. Tests, DOM helpers, and custom CSS may have the same problem, so a template find-and-replace is not enough. I'd keep the old naming unless the migration tooling handles selectors correctly too.
1
u/quadra-lab Oct 23 '26
I'm currently working on a migration from 5.2 to 5.3 (it's more webform to mvc with a full rewrite of the styling to 5.3 but still is valid ig). We haven't considered to migrate directly to 6 because of the word alpha is problematic for our legal team mainly.
We basically don't care about the breaking changes because our migrations are basically automated with a homemade AI skill that covers that no UI change is made.
All our UI changes are covered by AI now and follows a strict review cycle to be sure that everything is done properly as it is definitely more efficient for us as a small team to work that way.
It could be Bootstrap 5.3 to Tailwind that we wouldn't care less about the verbosity and grammar of the styling framework. We build a product to be robust and to have the same style everywhere.
1
u/omer-m Oct 23 '26
Better to stick with tailwind style names. Just accept that it becomes an industry standard. It was a pain for me to remember class names while switching between new and legacy projects.
6
u/captain_obvious_here back-end Oct 23 '26
TIL that Bootstrap still exists, and a v6 is even on the way.
2
u/svtguy88 Oct 23 '26
Good god, no. The last thing I want to do is memorize another grid/display syntax.
There's a reason some of us have stuck with Bootstrap for this long...
2
u/iliketocookstuff Oct 23 '26
Agree with previous comments, let Bootstrap be Bootstrap! Totally unnecessary change and I prefer anything that doesn't look like Tailwind personally.
2
u/rbobby full-stack Oct 23 '26
A new bootstrap means new classes. For me I was just learning it and the jump between 4 and 5 (or maybe 3 and 4). It was tough but didn't last too long. The start/end change was rough but made a ton of sense. The rest I don't recall.
I expect the same of 6.
:)
1
u/kanine69 Oct 23 '26
Ugh. I hadn't looked into 6 much, the swapping will be a bit of a pain but it reads better. I also thought I saw they've written some agentic prompts / skills? etc which should speed up the transition.
I'll be waiting for the first point release after it goes live.
1
u/magenta_placenta Oct 23 '26
It comes down to a fundamental trade-off between backwards compatibility and current mental models.
When maintaining large legacy codebases, cosmetic class renames offer low ROI relative to the risk of broken templates or missed edge cases during upgrade sweeps.
1
u/jinmao6700 Oct 23 '26
Your argument doesnt make much sense by just fixating on Tailwind, there are also improvements, such as CSS-first Sass modules,
utilitiesas the top-most layer.(width >= 768px)replacing min-width/max-width hacks.<details>and<summary>powering the accordion—no JavaScript needed<dialog>element behind the new Dialog component:where()selector to reduce specificity in complex selectorscontent-visibilitywithallow-discretetransitions, plusinterpolate-sizeand the::details-contentpseudo-element, so the accordion animates open and closed in pure CSS. Height animation on a disclosure widget used to mean measuring elements in JavaScript.at propertyto register the custom properties composed by our utility API as non-inheriting, preventing their values from leaking into children.1
u/FrostingTechnical606 Oct 23 '26
Look, just make a vscode extension that converts the class names over so you don't have to think about it.
1
u/Kyle772 Oct 23 '26
Just my two cents but the entire generation of class name conventions before recent times sucks ass and it’ll be good to polish them. Tailwind bootstrap ant literally all of them have the most nonsense class names. I like the changes 6 proposes personally.
1
u/onesneakymofo Oct 23 '26
I'm a Bootstrap 5 user.
I'm moving to Tailwind, but this was a huge reason why I moved away (that and majority of web apps are now on Tailwind).
The prefix makes a lot more sense and will no longer cause the confusion it used to cause going from different versions of Bootstrap.
1
u/hightrix Oct 23 '26
Keep existing.
1
u/jhkoenig Oct 24 '26
The renaming is a total deal-breaker for me. I can't imagine a seamless way to update my entire code base to reflect the new naming scheme. With their devs had thought things through a bit more. And decided not to change EVERYTHING
1
u/NCKBLZ Oct 24 '26
I haven't used bootstrap in years and I prefer the Tailwind style much more but if I were using bootstrap this change would annoy me a lot
1
u/IsABot Oct 24 '26
For new projects, I would prefer the newer naming convention. But for large legacy projects, I would find the changes super annoying. That being said, if CoreUI 6 is based on Bootstrap 6, then I would be even more annoyed if you didn't follow the conventions used within Bootstrap. Mixing the old and the new together would drive me nuts. If it's based on BS5, then keeping the old convention is fine.
1
u/OrganizationLost3135 Oct 24 '26
Keep the old names. Prefix-first (md:d-none) is nicer to grep, but the actual pain isn't find-replace on HTML, it's the class strings you concatenate in JS, CMS templates, and email snippets. Those won't survive a codemod cleanly, so you end up with a hybrid codebase for a year.
If Bootstrap wants the new syntax, ship it as an alias layer on v6 and drop the old one in v7. Renaming utilities without a new capability is a tax on every shop still sitting on 400 templates.
1
u/Random-num-451284813 Oct 26 '26
bootstap meets tailwind
1
u/mladenmacanovic Oct 23 '26
I find them repulsive. But I will abstract them behind my project components and utilities that it doesn't matter too much.
1
u/VietCong_137 Oct 23 '26
Its better imo, because the breakpoint label is always at the beginning and the colon clearly seperates the breakpoint from the actual class name. In the examples the breakpoint position is inconsistent: d-md-none & justify-content-md-end
1
u/sporkfpoon Oct 23 '26
Haven’t used Bootstrap in quite a while but feel the left side of your table is less intuitive and would be harder to group. If I were going to make a hybrid I might go “lg-col-6” instead of “lg:col-6”, but I think the Tailwind order of operations is correct.
1
u/verviico Oct 23 '26
Honestly the syntax itself isn't what hurts, it's rewriting it across every template you own. For us that part would be a codemod: ripgrep plus a mapping table (`d-md-none` → `md:d-none`) gets most of the way, and Playwright screenshots on the main pages catch what the script misses. If you ship the library, I'd keep both syntaxes for one major version and log a console warning on the old one. That's the difference between "I'll upgrade this sprint" and "I'll stay on v5 forever."
0
u/hightrix Oct 23 '26
Is this account using AI to respond to comments? They all have the exact same format.
-7
u/Lumethys Oct 23 '26
If someone is using bootstrap, they are more likely than not the type that never update their software
For those that do, i dont imagine update css class would be that big of a change, find-and-replace would do the job in like 20 minutes
Or throw it to an AI and it could probably do it in 3
-10
u/thekwoka Oct 23 '26
Does anybody even want Bootstrap?