Expand description
rosace-theme — design-token system for the ROSACE UI framework.
§Overview
This crate provides the complete theming layer:
Color/ColorScheme— f32 RGBA colors and semantic color roles.Typography— Material Design 3 type scale.Spacing— named spacing tokens.BorderRadius— named corner-radius tokens.Shadows— named elevation/shadow tokens.ThemeData— all tokens in one struct.RosaceTheme— trait for custom themes.built_in—light_theme()anddark_theme()factory functions.use_theme()/set_theme()— global theme access via a reactive atom.
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, andPalette. - provider
- Global theme provider:
use_theme()andset_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:
ThemeDataand theRosaceThemetrait. - themes
- Platform-keyed theme bundle (D105 Phase 23 Step 2).
- typography
- Typography tokens: font families, weights, and the type scale.