pub struct DecorativeColors {
pub red: Color,
pub orange: Color,
pub amber: Color,
pub green: Color,
pub teal: Color,
pub cyan: Color,
pub blue: Color,
pub violet: Color,
pub magenta: Color,
}Expand description
Vibrant categorical source colors with matched OKLCH lightness and chroma, so no hue shouts over another.
Fields§
§red: Color§orange: Color§amber: Color§green: Color§teal: Color§cyan: Color§blue: Color§violet: Color§magenta: ColorImplementations§
Source§impl DecorativeColors
impl DecorativeColors
Sourcepub fn light() -> Self
pub fn light() -> Self
Light-surface decorative set. Every hue except amber reaches at least 3:1 against white; derived text roles cover the rest.
Sourcepub fn dark() -> Self
pub fn dark() -> Self
Dark-surface decorative set, lifted so every hue reads at least 6.5:1 on the dark panel.
pub fn get(&self, hue: DecorativeHue) -> Color
pub fn set(&mut self, hue: DecorativeHue, color: Color)
Trait Implementations§
Source§impl Clone for DecorativeColors
impl Clone for DecorativeColors
impl Copy for DecorativeColors
Source§impl Debug for DecorativeColors
impl Debug for DecorativeColors
Source§impl PartialEq for DecorativeColors
impl PartialEq for DecorativeColors
impl StructuralPartialEq for DecorativeColors
Auto Trait Implementations§
impl Forget for DecorativeColors
impl Freeze for DecorativeColors
impl Move for DecorativeColors
impl RefUnwindSafe for DecorativeColors
impl Send for DecorativeColors
impl Sync for DecorativeColors
impl Unpin for DecorativeColors
impl UnsafeUnpin for DecorativeColors
impl UnwindSafe for DecorativeColors
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