pub struct ThemeTokens {Show 16 fields
pub brand_light: Color,
pub brand_dark: Color,
pub brand_surface: Color,
pub brand_accent: Color,
pub brand_secondary: Color,
pub brand_hover: Color,
pub brand_active: Color,
pub brand_tint: Color,
pub brand_text: Color,
pub bg: Color,
pub border: Color,
pub muted: Color,
pub success: Color,
pub warning: Color,
pub danger: Color,
pub chart: Vec<Color>,
}Expand description
The fully-resolved, safe set of tokens the UI consumes. Field
names match the --rio-* custom properties emitted by emit.rs.
Fields§
§brand_light: ColorBrand variant for light-mode surfaces.
brand_dark: ColorBrand variant for dark-mode surfaces.
brand_surface: ColorTamed brand for large fills (topbar, primary button bg).
brand_accent: ColorRaw brand for small touches (icons, dots, focus rings).
brand_secondary: ColorSecondary brand from a multi-color input. For single-color inputs this is a derived hover-darkened variant of the primary.
brand_hover: ColorSolid brand background for hover states.
brand_active: ColorSolid brand background for active / pressed states.
brand_tint: ColorLight brand-tinted surface (focus ring backgrounds, soft fills).
brand_text: ColorBrand-family text color usable on light surfaces.
bg: ColorPage canvas (brand-tinted near-white).
border: ColorHairline border in the brand family.
muted: ColorMuted neutral with a hint of brand temperature.
success: ColorSuccess semantic foreground.
warning: ColorWarning semantic foreground.
danger: ColorDanger / destructive semantic foreground.
chart: Vec<Color>Data-series fills. Empty for fewer than three brand inputs.
Trait Implementations§
Source§impl Clone for ThemeTokens
impl Clone for ThemeTokens
Source§fn clone(&self) -> ThemeTokens
fn clone(&self) -> ThemeTokens
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more