跳到主要内容

Color modes

Bootstrap v5.3 now supports color modes such as dark mode. Color modes can be toggled globally on the <html> element, or on specific components and elements, thanks to the data-bs-theme attribute.

Example

结果
Loading...
实时编辑器

Customizing

For more information on how colors modes work or how to customize colors, check out the Bootstrap color mode docs.