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
Re-export core tailwind-rs functionality Typography scale for the theme
Fields§
§font_family: FontFamily§font_sizes: FontSizeScale§font_weights: FontWeightScale§line_heights: LineHeightScale§letter_spacing: LetterSpacingScaleImplementations§
Source§impl TypographyScale
impl TypographyScale
Sourcepub fn new() -> TypographyScale
pub fn new() -> TypographyScale
Creates a new typography scale with default values
Sourcepub fn font_family(self, family: FontFamily) -> TypographyScale
pub fn font_family(self, family: FontFamily) -> TypographyScale
Sets the font family for the typography scale
Trait Implementations§
Source§impl Default for TypographyScale
impl Default for TypographyScale
Source§fn default() -> TypographyScale
fn default() -> TypographyScale
Returns the “default value” for a type. Read more
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