Calling out some outstanding todos and questions from #35857 as we'll merge that PR and tackle these things in smaller batches.
General todos
Q&A
- Why move some SVGs out of embedded CSS?
- Makes CSS bundle smaller eventually (come v6)
- Allows for use of inherited color as opposed to fixed colors, which requires repeating the entire SVG embed in CSS (adding to file size)
Docs todos
Issues
After alpha release
Other tasks
Issues raised by contributors
Calling out some outstanding todos and questions from #35857 as we'll merge that PR and tackle these things in smaller batches.
General todos
$theme-colors? This has been improved with CSS variables being generated from new maps. No way to generate new Sass variables from a map though.Do we provide hex colors,No, not in this version.rgba()colors, or both for the new variables?css-variables.md$theme-colors(alerts and list groups) so Customize > Sass > Add to map isn't completely true anymore?SplitI think for now, we leave as-is. Let's let this back while we get onto v6 where we can revamp.:root,[data-bs-*rules? (see Add dark mode support #35857 (comment)).dropdown-menu-dark? If so, mention in Migrationmove icons into HTML as SVGs as well? similar to navbars if soRefactor new bg, border, and text utilities to useSkipping in v5.rgba()values? TBD on this, would change a lot (+ see Add dark mode support #35857 (comment) and Add dark mode support #35857 (comment))calc()function in the comparison on L78? (see https://github.com/twbs/bootstrap/pull/35857/files#r1020883939)Third slide in dark mode, difficult to distinguish the normal color and the hovered one`This is the same colors as in default/light mode, so if we want to redo these, let's redo them all over. Saving for another time.Add something to automatically testAlready tackled by Add SCSS testing of the utilities API #36029$color-mode-typewithmedia-queryset (see Setting $color-mode-type to media-query (rather than data) causes a Sass compilation erro #37673)$tooltip-color: var(--#{$prefix}body-bg)and$tooltip-bg: var(--#{$prefix}emphasis-color)since we use a background color to define the color of tooltips, and a text color to define the background of tooltips.Q&A
Docs todos
/examples?bootstrap-grid.scssfile by not importing all of_root.scss?variables-darkas well incolor.md,api.mdandcustomize.html$*-text,$*-bg-subtleand$*-border-subtle(see Add dark mode support #35857 (comment))Issues
After alpha release
:rootand color mode CSS vars. Fixed by Fix CSS variables mentioned in our docs #37742Dark mode in the themes website?Other tasks
.text-mutedby.text-body-secondaryin v6Issues raised by contributors
btn-outline-darkis not visible in button group component #37753navbar-darkwithdata-bs-themebreaks toggler icon color #37754$component-*-colorSass vars having anullvalue--bs-emphasis-colorset value #37809prefers-color-schemein @media for automatically rendering the client's preferred colour scheme #37973