pub struct Typography {
pub xxs: f32,
pub xs: f32,
pub sm: f32,
pub base: f32,
pub lg: f32,
pub xl: f32,
pub xxl: f32,
}Expand description
Font size scale following a modular type system.
Based on a 1.2 minor-third scale with 14px base, matching common UI/design system conventions (Tailwind, shadcn/ui).
Fields§
§xxs: f32Extra-extra-small (10px) — fine print, badges
xs: f32Extra-small (11px) — captions, metadata
sm: f32Small (12px) — secondary labels, descriptions
base: f32Base/default (14px) — body text, inputs, buttons
lg: f32Large (16px) — section headers, emphasized text
xl: f32Extra-large (18px) — page titles, headings
xxl: f322XL (24px) — hero headings, display text
Trait Implementations§
Source§impl Clone for Typography
impl Clone for Typography
Source§fn clone(&self) -> Typography
fn clone(&self) -> Typography
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 Typography
impl Debug for Typography
Source§impl Default for Typography
impl Default for Typography
Source§impl<'de> Deserialize<'de> for Typography
impl<'de> Deserialize<'de> for Typography
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
Auto Trait Implementations§
impl Freeze for Typography
impl RefUnwindSafe for Typography
impl Send for Typography
impl Sync for Typography
impl Unpin for Typography
impl UnsafeUnpin for Typography
impl UnwindSafe for Typography
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