pub trait Theme:
Send
+ Sync
+ Debug {
// Required methods
fn name(&self) -> &str;
fn color_scheme(&self) -> ColorScheme;
fn colors(&self) -> &ColorTokens;
fn typography(&self) -> &TypographyTokens;
fn spacing(&self) -> &SpacingTokens;
fn radii(&self) -> &RadiusTokens;
fn shadows(&self) -> &ShadowTokens;
fn animations(&self) -> &AnimationTokens;
}Expand description
The main theme trait that all themes must implement
Required Methods§
Sourcefn color_scheme(&self) -> ColorScheme
fn color_scheme(&self) -> ColorScheme
Get the current color scheme
Sourcefn colors(&self) -> &ColorTokens
fn colors(&self) -> &ColorTokens
Get color tokens
Sourcefn typography(&self) -> &TypographyTokens
fn typography(&self) -> &TypographyTokens
Get typography tokens
Sourcefn spacing(&self) -> &SpacingTokens
fn spacing(&self) -> &SpacingTokens
Get spacing tokens
Sourcefn radii(&self) -> &RadiusTokens
fn radii(&self) -> &RadiusTokens
Get radius tokens
Sourcefn shadows(&self) -> &ShadowTokens
fn shadows(&self) -> &ShadowTokens
Get shadow tokens
Sourcefn animations(&self) -> &AnimationTokens
fn animations(&self) -> &AnimationTokens
Get animation tokens