v6 docs: various fixes#42600
Merged
Merged
Conversation
mdo
reviewed
Jun 29, 2026
| ### Sass variables | ||
|
|
||
| CSS variables for our dark color mode are partially generated from dark mode specific Sass variables in `_variables-dark.scss`. This also includes some custom overrides for changing the colors of embedded SVGs used throughout our components. | ||
| CSS variables for our dark color mode are generated from Sass in `_root.scss` and `_theme.scss`, including overrides for components that embed SVG data URIs in CSS—primarily via `mask-image` (carousel controls, close buttons, and similar icons), with select dropdown arrows as a remaining `background-image` case. |
Member
There was a problem hiding this comment.
I think because we use image masks for most of these now, this isn't as accurate?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates docs and examples to reflect recent changes in how Bootstrap handles dark mode and SVG usage. It clarifies the use of new Sass files for color modes, updates class names for color emphasis, and modernizes SVG handling in both Sass and Webpack guides.
Documentation updates for color modes and dark mode:
_root.scssand_theme.scssinstead of_variables-dark.scssfor global and theme color tokens. [1] [2] [3]SVG usage and handling improvements:
mask-image(with a few remainingbackground-imagecases) in both the Sass and Webpack documentation, and updated code examples to reflect this. [1] [2]Component and style consistency:
text-secondary-emphasistofg-emphasis-secondaryfor consistency with the latest Bootstrap naming conventions.display-1tofs-6xlfor improved consistency with new font size utilities.Type of changes
Checklist
npm run lint)Live previews