Bootstrap 5.2 Released: More CSS Variables and Bundler Guides
Bootstrap 5.2 expanded CSS custom properties across components, added responsive local CSS variables on utilities, smooth-scroll Scrollspy, and rewritten Webpack, Parcel and Vite guides.
Historical Archive. This article documents an event from 2022 and is preserved with its original date for reference. It is not current news, and details may have changed since publication.
What happened
Bootstrap 5.2.0 was released on July 19, 2022, according to the official Bootstrap GitHub release. It continued the framework's gradual move toward CSS custom properties while adding developer-experience improvements and new component capabilities.
CSS variables and utilities
A key theme was extending CSS custom properties across more components and adding missing CSS variables, for example for the navbar-nav. The release also added the ability to generate local CSS variables on utilities when using the state option, and introduced $display-font-family and $display-font-style variables, continuing the groundwork that the color-mode system in 5.3 would build on.
Component features
Bootstrap 5.2 enabled smooth-scroll behavior in Scrollspy, added support for input groups in floating forms, truncated text to prevent multiline floating labels, and manually set hover and active backgrounds and borders for dark and light buttons. It also fixed a range of border-radius and validation issues across dropdowns, alerts and tooltips.
Rewritten bundler guides
On the documentation side, the release rewrote the Webpack and Parcel getting-started guides and added a brand-new Vite guide, reflecting the shift in the JavaScript tooling ecosystem. It also improved accessibility across examples and updated the code of conduct to Contributor Covenant 2.1.
Why it mattered
Bootstrap 5.2 was an incremental but important release that deepened the framework's adoption of CSS variables and modernised its build tooling guidance. The utility and CSS-variable work in particular laid the technical foundation for the first-class dark mode and color-mode system that arrived in Bootstrap 5.3.
Related on Skillo
See also: Bootstrap 5.0 and the jQuery-free rewrite, Bootstrap 5.3's dark mode.
Sources
Published date reflects the original event date (2022-07-19). This article is original Skillo editorial written from the sources above; facts were verified in September 2026.
Written by
Skillo Staff
0 Comments
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.