pub struct DesignSystem {
pub bg_base: Color,
pub text_base: Color,
pub text_lightness: f32,
pub primary_base: Color,
pub success_base: Color,
pub warning_base: Color,
pub danger_base: Color,
pub is_dark: bool,
pub padding: f32,
pub border_radius: f32,
pub font_size: f32,
}Fields§
§bg_base: Color§text_base: Color§text_lightness: f32§primary_base: Color§success_base: Color§warning_base: Color§danger_base: Color§is_dark: bool§padding: f32§border_radius: f32§font_size: f32Implementations§
Source§impl DesignSystem
impl DesignSystem
pub fn bg_base(&self) -> Color
pub fn bg_elevated(&self) -> Color
pub fn bg_overlay(&self) -> Color
pub fn bg_disabled(&self) -> Color
pub fn border(&self) -> Color
pub fn border_muted(&self) -> Color
pub fn text(&self) -> Color
pub fn text_muted(&self) -> Color
pub fn primary(&self) -> Color
pub fn primary_muted(&self) -> Color
pub fn success(&self) -> Color
pub fn warning(&self) -> Color
pub fn danger(&self) -> Color
pub fn info(&self) -> Color
pub fn padding(&self) -> f32
pub fn border_radius(&self) -> f32
pub fn font_size(&self) -> f32
Trait Implementations§
Source§impl Clone for DesignSystem
impl Clone for DesignSystem
Source§fn clone(&self) -> DesignSystem
fn clone(&self) -> DesignSystem
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 DesignSystem
impl Debug for DesignSystem
Source§impl PartialEq for DesignSystem
impl PartialEq for DesignSystem
Source§impl StylePropValue for DesignSystem
impl StylePropValue for DesignSystem
fn debug_view(&self) -> Option<AnyView>
fn interpolate(&self, other: &Self, value: f64) -> Option<Self>
fn combine(&self, _other: &Self) -> CombineResult<Self>
Source§fn content_hash(&self) -> u64
fn content_hash(&self) -> u64
Compute a content-based hash for this value. Read more
impl StructuralPartialEq for DesignSystem
Auto Trait Implementations§
impl Freeze for DesignSystem
impl RefUnwindSafe for DesignSystem
impl Send for DesignSystem
impl Sync for DesignSystem
impl Unpin for DesignSystem
impl UnwindSafe for DesignSystem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more