Dark mode
KVision fully supports Bootstrap dark mode. You can use io.kvision.theme.ThemeManager
component from the kvision-bootstrap
module to work with color themes.
By default theme manager is initialized with auto-detected mode and saves the mode selected by the user in the browser local storage. You can modify this behavior with additional parameters of the init()
method.
You can use ThemeManager.theme
property to manually select the color theme.
You can also use built-in ThemeSwitcher
, component which is a Button
subclass designed as the color mode toggler (you need to also include Font Awesome module for icons).
Last updated