Open
Description
Prerequisites
- I have searched for duplicate or closed feature requests
- I have read the contributing guidelines
Proposal
Bootstrap’s breakpoint CSS variables (e.g., --bs-breakpoint-md
) should be available globally, even when not using the grid system.
These variables were originally in _root.scss
but were moved to _grid.scss
in PR #37844, making them unavailable unless the grid is used.
Motivation and context
On smaller projects, I sometimes don’t use the Bootstrap grid system but still rely on responsive utility classes like d-lg-none
.
For this reason, the variables should remain in _root.scss
, as they are not exclusive to the grid system.
Also, the name $grid-breakpoints
is misleading since the breakpoints are used more broadly. A more appropriate name would be $breakpoints
, though that’s outside the scope of this request.