#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct Spacing {
pub space_none: u16,
pub space_xxxs: u16,
pub space_xxs: u16,
pub space_xs: u16,
pub space_s: u16,
pub space_m: u16,
pub space_l: u16,
pub space_xl: u16,
pub space_xxl: u16,
pub space_xxxl: u16,
}
impl Spacing {
pub const fn default_small() -> Self {
Self {
space_none: 0,
space_xxxs: 1,
space_xxs: 2,
space_xs: 4,
space_s: 8,
space_m: 12,
space_l: 16,
space_xl: 24,
space_xxl: 32,
space_xxxl: 48,
}
}
}
impl Default for Spacing {
fn default() -> Self {
Self::default_small()
}
}