pub struct TypographyTokens {Show 29 fields
pub font_family_sans: String,
pub font_family_serif: String,
pub font_family_mono: String,
pub font_weight_regular: u16,
pub font_weight_medium: u16,
pub font_weight_semibold: u16,
pub font_weight_bold: u16,
pub font_size_xs: f32,
pub font_size_sm: f32,
pub font_size_base: f32,
pub label_large_size: f32,
pub body_medium_size: f32,
pub body_large_size: f32,
pub font_size_lg: f32,
pub font_size_xl: f32,
pub heading_size: f32,
pub heading2_size: f32,
pub heading1_size: f32,
pub display_sm_size: f32,
pub display_md_size: f32,
pub line_height_display: f32,
pub line_height_heading: f32,
pub line_height_snug: f32,
pub line_height_normal: f32,
pub line_height_relaxed: f32,
pub letter_spacing_tight: f32,
pub letter_spacing_normal: f32,
pub letter_spacing_label: f32,
pub letter_spacing_kicker: f32,
}Expand description
Font size scale for text elements.
Sizes: label_large_size (15), body_medium_size (15), body_large_size (17),
heading_size (28).
Fields§
§font_family_sans: String§font_family_serif: String§font_family_mono: String§font_weight_regular: u16§font_weight_medium: u16§font_weight_semibold: u16§font_weight_bold: u16§font_size_xs: f32§font_size_sm: f32§font_size_base: f32§label_large_size: f32§body_medium_size: f32§body_large_size: f32§font_size_lg: f32§font_size_xl: f32§heading_size: f32§heading2_size: f32§heading1_size: f32§display_sm_size: f32§display_md_size: f32§line_height_display: f32§line_height_heading: f32§line_height_snug: f32§line_height_normal: f32§line_height_relaxed: f32§letter_spacing_tight: f32§letter_spacing_normal: f32§letter_spacing_label: f32§letter_spacing_kicker: f32Trait Implementations§
Source§impl Clone for TypographyTokens
impl Clone for TypographyTokens
Source§fn clone(&self) -> TypographyTokens
fn clone(&self) -> TypographyTokens
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypographyTokens
impl Debug for TypographyTokens
Source§impl Default for TypographyTokens
impl Default for TypographyTokens
Source§impl<'de> Deserialize<'de> for TypographyTokens
impl<'de> Deserialize<'de> for TypographyTokens
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 TypographyTokens
impl PartialEq for TypographyTokens
Source§fn eq(&self, other: &TypographyTokens) -> bool
fn eq(&self, other: &TypographyTokens) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TypographyTokens
impl Serialize for TypographyTokens
impl StructuralPartialEq for TypographyTokens
Auto Trait Implementations§
impl Freeze for TypographyTokens
impl RefUnwindSafe for TypographyTokens
impl Send for TypographyTokens
impl Sync for TypographyTokens
impl Unpin for TypographyTokens
impl UnsafeUnpin for TypographyTokens
impl UnwindSafe for TypographyTokens
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