pub struct ColorFamily {
pub base: Hsla,
pub hover: Hsla,
pub active: Hsla,
pub suppl: Hsla,
pub light_9: Hsla,
pub light_8: Hsla,
pub light_7: Hsla,
}Expand description
Semantic color family containing base, state, and subtle background tokens.
Fields§
§base: HslaBase value for the z-index stack.
hover: HslaColor used for hover affordances.
active: HslaColor used for active or pressed affordances.
suppl: HslaSupplemental accent color paired with the base token.
light_9: Hslalight-9: for subtle backgrounds
light_8: Hslalight-8
light_7: Hslalight-7: for hover backgrounds
Trait Implementations§
Source§impl Clone for ColorFamily
impl Clone for ColorFamily
Source§fn clone(&self) -> ColorFamily
fn clone(&self) -> ColorFamily
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ColorFamily
impl RefUnwindSafe for ColorFamily
impl Send for ColorFamily
impl Sync for ColorFamily
impl Unpin for ColorFamily
impl UnsafeUnpin for ColorFamily
impl UnwindSafe for ColorFamily
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