pub struct DesignTokenTable {
pub system: DesignSystem,
pub reference: &'static str,
pub default_family: &'static str,
pub monospace_family: &'static str,
pub colors: &'static [ColorToken; 45],
pub type_scale: &'static [TypeToken; 9],
pub shapes: &'static [ShapeToken; 6],
pub spaces: &'static [SpaceToken; 7],
}Expand description
Items 1 to 4 of the 14.6 table for one design system.
Fields§
§system: DesignSystem§reference: &'static strThe published guideline the values come from, recorded as 14.3 asks.
default_family: &'static str§monospace_family: &'static str§colors: &'static [ColorToken; 45]§type_scale: &'static [TypeToken; 9]§shapes: &'static [ShapeToken; 6]§spaces: &'static [SpaceToken; 7]Implementations§
Source§impl DesignTokenTable
impl DesignTokenTable
pub fn color(&self, role: ColorRole, scheme: ColorScheme) -> Color
Trait Implementations§
Source§impl Clone for DesignTokenTable
impl Clone for DesignTokenTable
impl Copy for DesignTokenTable
Source§impl Debug for DesignTokenTable
impl Debug for DesignTokenTable
Source§impl PartialEq for DesignTokenTable
impl PartialEq for DesignTokenTable
impl StructuralPartialEq for DesignTokenTable
Auto Trait Implementations§
impl Freeze for DesignTokenTable
impl RefUnwindSafe for DesignTokenTable
impl Send for DesignTokenTable
impl Sync for DesignTokenTable
impl Unpin for DesignTokenTable
impl UnsafeUnpin for DesignTokenTable
impl UnwindSafe for DesignTokenTable
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