BS5 Dark Mode
Dark Mode
The background color of bootstrap pages is white, or light, by default.
You can add data-bs-theme=”dark” to the <html> element to make the entire page a darker color:
Dark Mode For Components
You can add the data-bs-theme=”dark” attribute to a particular component if you only want that component to have a darker hue rather than the entire page.
Add dark mode to a table, for instance:
Example
Example
Alter a dropdown menu to include dark mode, for instance:
Example
==== Example mukavu ====
Example
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.