pub struct ThemeTokens {Show 46 fields
pub color_primary: String,
pub color_primary_hover: String,
pub color_primary_active: String,
pub color_success: String,
pub color_success_hover: String,
pub color_success_active: String,
pub color_warning: String,
pub color_warning_hover: String,
pub color_warning_active: String,
pub color_error: String,
pub color_error_hover: String,
pub color_error_active: String,
pub color_link: String,
pub color_link_hover: String,
pub color_link_active: String,
pub color_text: String,
pub color_text_muted: String,
pub color_text_secondary: String,
pub color_text_disabled: String,
pub color_split: String,
pub color_bg_base: String,
pub color_bg_container: String,
pub color_bg_layout: String,
pub color_border: String,
pub color_border_hover: String,
pub border_radius: f32,
pub border_radius_sm: f32,
pub border_radius_lg: f32,
pub control_height: f32,
pub control_height_small: f32,
pub control_height_large: f32,
pub padding_inline: f32,
pub padding_inline_small: f32,
pub padding_inline_large: f32,
pub padding_block: f32,
pub padding_block_small: f32,
pub padding_block_large: f32,
pub font_size: f32,
pub font_size_small: f32,
pub font_size_large: f32,
pub line_height: f32,
pub control_line_width: f32,
pub motion_duration_fast: f32,
pub motion_duration_mid: f32,
pub shadow: String,
pub shadow_secondary: String,
}Expand description
Core design tokens needed by early components.
Fields§
§color_primary: String§color_primary_hover: String§color_primary_active: String§color_success: String§color_success_hover: String§color_success_active: String§color_warning: String§color_warning_hover: String§color_warning_active: String§color_error: String§color_error_hover: String§color_error_active: String§color_link: String§color_link_hover: String§color_link_active: String§color_text: String§color_text_muted: String§color_text_secondary: String§color_text_disabled: String§color_split: String§color_bg_base: String§color_bg_container: String§color_bg_layout: String§color_border: String§color_border_hover: String§border_radius: f32§border_radius_sm: f32§border_radius_lg: f32§control_height: f32§control_height_small: f32§control_height_large: f32§padding_inline: f32§padding_inline_small: f32§padding_inline_large: f32§padding_block: f32§padding_block_small: f32§padding_block_large: f32§font_size: f32§font_size_small: f32§font_size_large: f32§line_height: f32§control_line_width: f32§motion_duration_fast: f32§motion_duration_mid: f32§shadow: String§shadow_secondary: StringImplementations§
Trait Implementations§
Source§impl Clone for ThemeTokens
impl Clone for ThemeTokens
Source§fn clone(&self) -> ThemeTokens
fn clone(&self) -> ThemeTokens
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThemeTokens
impl Debug for ThemeTokens
Source§impl<'de> Deserialize<'de> for ThemeTokens
impl<'de> Deserialize<'de> for ThemeTokens
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThemeTokens
impl PartialEq for ThemeTokens
Source§impl Serialize for ThemeTokens
impl Serialize for ThemeTokens
impl StructuralPartialEq for ThemeTokens
Auto Trait Implementations§
impl Freeze for ThemeTokens
impl RefUnwindSafe for ThemeTokens
impl Send for ThemeTokens
impl Sync for ThemeTokens
impl Unpin for ThemeTokens
impl UnwindSafe for ThemeTokens
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.