pub struct Palette {Show 15 fields
pub bg_000: Color,
pub bg_100: Color,
pub bg_200: Color,
pub bg_300: Color,
pub border: Color,
pub ink: Color,
pub ink_muted: Color,
pub accent: Color,
pub accent_hover: Color,
pub accent_pressed: Color,
pub on_accent: Color,
pub focus_ring: Color,
pub success: Color,
pub warning: Color,
pub danger: Color,
}Expand description
The color tokens of one theme.
Fields§
§bg_000: Colorbg-000: the canvas behind everything.
bg_100: Colorbg-100: panels and sidebars.
bg_200: Colorbg-200: cards.
bg_300: Colorbg-300: control fills.
border: Colorborder: hairlines and control outlines.
ink: Colorink: primary text and icons.
ink_muted: Colorink-muted: secondary text, captions and placeholders.
accent: Coloraccent: primary actions and selection.
accent_hover: Coloraccent-hover: accent fill while hovered.
accent_pressed: Coloraccent-pressed: accent fill while pressed.
on_accent: Coloron-accent: text and icons drawn on an accent fill.
focus_ring: Colorfocus-ring: keyboard focus indicator.
success: Colorsuccess: positive status.
warning: Colorwarning: cautionary status.
danger: Colordanger: errors and destructive actions.
Implementations§
Trait Implementations§
impl Copy for Palette
impl StructuralPartialEq for Palette
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
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