pub struct NeutralTokens {Show 18 fields
pub body: Hsla,
pub card: Hsla,
pub modal: Hsla,
pub popover: Hsla,
pub inverted: Hsla,
pub text_1: Hsla,
pub text_2: Hsla,
pub text_3: Hsla,
pub text_disabled: Hsla,
pub placeholder: Hsla,
pub icon: Hsla,
pub border: Hsla,
pub divider: Hsla,
pub hover: Hsla,
pub pressed: Hsla,
pub rail: Hsla,
pub overlay: Hsla,
pub mask: Hsla,
}Expand description
Neutral surface, text, border, interaction, and overlay tokens used across components.
Fields§
§body: HslaApplication body background color.
card: HslaCard and elevated surface background color.
modal: HslaModal panel background color.
popover: HslaPopover and floating-panel background color.
inverted: HslaInverted surface color used behind high-contrast content.
text_1: HslaPrimary text color.
text_2: HslaSecondary text color.
text_3: HslaTertiary text color.
text_disabled: HslaText color used for disabled controls.
placeholder: HslaPlaceholder text color for empty inputs.
icon: HslaOptional icon rendered with the item.
border: HslaBorder color used in the normal state.
divider: HslaDivider line color.
hover: HslaColor used for hover affordances.
pressed: HslaPressed-state background color.
rail: HslaTrack or rail color for slider-like controls.
overlay: HslaTranslucent overlay color.
mask: HslaBackdrop mask color for modal layers.
Trait Implementations§
Source§impl Clone for NeutralTokens
impl Clone for NeutralTokens
Source§fn clone(&self) -> NeutralTokens
fn clone(&self) -> NeutralTokens
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 NeutralTokens
impl RefUnwindSafe for NeutralTokens
impl Send for NeutralTokens
impl Sync for NeutralTokens
impl Unpin for NeutralTokens
impl UnsafeUnpin for NeutralTokens
impl UnwindSafe for NeutralTokens
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