pub struct ColorScale {Show 20 fields
pub primary: Color,
pub primary_foreground: Color,
pub secondary: Color,
pub secondary_foreground: Color,
pub background: Color,
pub foreground: Color,
pub muted: Color,
pub muted_foreground: Color,
pub border: Color,
pub destructive: Color,
pub success: Color,
pub warning: Color,
pub accent: Color,
pub accent_foreground: Color,
pub card: Color,
pub card_foreground: Color,
pub popover: Color,
pub popover_foreground: Color,
pub disabled: Color,
pub ring: Color,
}Expand description
Color scale with semantic color names
Fields§
§primary: ColorPrimary brand color
primary_foreground: ColorText color on primary background
secondary: ColorSecondary accent color
secondary_foreground: ColorText color on secondary background
background: ColorPage/element background color
foreground: ColorMain text color
muted: ColorMuted/subtle background
muted_foreground: ColorMuted text color
border: ColorBorder color
destructive: ColorError/destructive color
success: ColorSuccess color
warning: ColorWarning color
accent: ColorAccent color for highlights
accent_foreground: ColorText on accent
card: ColorCard/elevated surface background
card_foreground: ColorText on card
popover: ColorPopover/dropdown background
popover_foreground: ColorText on popover
disabled: ColorDisabled state
ring: ColorRing/focus indicator
Trait Implementations§
Source§impl Clone for ColorScale
impl Clone for ColorScale
Source§fn clone(&self) -> ColorScale
fn clone(&self) -> ColorScale
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 ColorScale
impl Debug for ColorScale
Source§impl<'de> Deserialize<'de> for ColorScale
impl<'de> Deserialize<'de> for ColorScale
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
Source§impl PartialEq for ColorScale
impl PartialEq for ColorScale
Source§impl Serialize for ColorScale
impl Serialize for ColorScale
impl StructuralPartialEq for ColorScale
Auto Trait Implementations§
impl Freeze for ColorScale
impl RefUnwindSafe for ColorScale
impl Send for ColorScale
impl Sync for ColorScale
impl Unpin for ColorScale
impl UnsafeUnpin for ColorScale
impl UnwindSafe for ColorScale
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> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.