Module theme_variant

Module theme_variant 

Source
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§

ThemeVariant
Represents the color scheme variant for a theme.