Available on crate feature
theme only.Expand description
Theme variant module for light and dark mode support.
This module provides the ThemeVariant enum which represents whether
to use dark or light mode colors from a theme definition.
§Example
use ratatui_toolkit::services::theme::ThemeVariant;
let variant = ThemeVariant::Dark;
assert_eq!(variant, ThemeVariant::Dark);
let light = ThemeVariant::Light;
assert_eq!(light, ThemeVariant::Light);Enums§
- Theme
Variant - Represents the color scheme variant for a theme.