Skip to main content

Crate rosace_theme

Crate rosace_theme 

Source
Expand description

rosace-theme — design-token system for the ROSACE UI framework.

§Overview

This crate provides the complete theming layer:

Re-exports§

pub use color::Color;
pub use color::ColorScheme;
pub use provider::set_theme;
pub use provider::use_theme;
pub use provider::set_animations;
pub use provider::ThemeMode;
pub use provider::use_theme_mode;
pub use provider::set_theme_mode;
pub use provider::sync_system_theme;
pub use provider::register_theme_pair;
pub use radius::BorderRadius;
pub use shadow::ShadowLayer;
pub use shadow::Shadows;
pub use spacing::Spacing;
pub use theme::AnimationConfig;
pub use theme::ThemeData;
pub use theme::RosaceTheme;
pub use theme::AppBarStyle;
pub use theme::TitleAlign;
pub use themes::Themes;
pub use typography::FontFamily;
pub use typography::FontWeight;
pub use typography::TextStyle;
pub use typography::Typography;

Modules§

built_in
Built-in light and dark themes.
color
Color primitives: Color (f32 RGBA), ColorScheme, and Palette.
provider
Global theme provider: use_theme() and set_theme().
radius
Border-radius tokens — the standard corner-rounding values.
shadow
Shadow tokens — elevation levels expressed as named shadow descriptors.
spacing
Spacing tokens — the standard set of logical-pixel gaps used across the UI.
theme
Core theme types: ThemeData and the RosaceTheme trait.
themes
Platform-keyed theme bundle (D105 Phase 23 Step 2).
typography
Typography tokens: font families, weights, and the type scale.