Bootstrap color-mode auto and prefers-color-scheme: resolved theme detection after OS switch
Integration boundary When Bootstrap's color-mode script runs with data-bs-theme="auto" on the document element, it synchronizes the data-bs-theme attribute with the browser's prefers-color-scheme media query on load and on change events. The script applies either "light" or "dark" to the attribute, which then drives CSS custom property resolution for compone