hwo to change --bs-body-bg in bootstrap
- User
hwo to change --bs-body-bg in bootstrap
- Assistant
In Bootstrap, you can change the
--bs-body-bgvariable (which sets the background color of the body) using CSS custom properties (CSS variables). This is typically done in one of two ways: either through your own CSS custom styles or by overriding it in a Bootstrap SCSS file.Method 1: Using CSS
-
Add Custom CSS: You can create a CSS file where you override the
--bs-body-bgvariable. For example::root { --bs-body-bg: #f8f9fa; /* Your desired color */ }
-