pub struct TypographyScale {
pub font_family: FontFamily,
pub font_sizes: FontSizeScale,
pub font_weights: FontWeightScale,
pub line_heights: LineHeightScale,
pub letter_spacing: LetterSpacingScale,
}
Expand description
Typography scale for the theme
Fields§
§font_family: FontFamily
§font_sizes: FontSizeScale
§font_weights: FontWeightScale
§line_heights: LineHeightScale
§letter_spacing: LetterSpacingScale
Implementations§
Source§impl TypographyScale
impl TypographyScale
Sourcepub fn font_family(self, family: FontFamily) -> Self
pub fn font_family(self, family: FontFamily) -> Self
Sets the font family for the typography scale
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypographyScale
impl RefUnwindSafe for TypographyScale
impl Send for TypographyScale
impl Sync for TypographyScale
impl Unpin for TypographyScale
impl UnwindSafe for TypographyScale
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