Module theme

Source
Expand description

Built-in semantic design tokens.

§Examples

use ailloli_ui_core::style::theme::Theme;
assert_eq!(Theme::dark().spacing().md, 12.0);

Built-in dark/orange semantic colors, spacing, typography, radius, and shadows.

Structs§

Theme
Semantic color tokens for built-in chrome and controls.
ThemePalette
Semantic color tokens for built-in widgets.
ThemeRadius
Standard radii used by native widgets.
ThemeShadows
Standard shadow presets for native boxes.
ThemeSpacing
Standard spacing scale in logical pixels.
ThemeTypography
Standard text styles used by native widgets and showcases.

Enums§

ThemeState
Shared semantic widget states for theme-driven controls.