Skip to content

Make breakpoint CSS variables available when not using _grid.scss #41535

Open
@levin192

Description

@levin192

Prerequisites

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions