pub struct DerivedPalette {
pub brand: Color,
pub brand_tint: Color,
pub brand_hover: Color,
pub brand_active: Color,
pub brand_text: Color,
pub bg: Color,
pub border: Color,
pub muted: Color,
}Expand description
The full set of brand-derived functional shades.
Fields§
§brand: ColorThe brand itself, unchanged. Carried through so callers do not need to thread two values.
brand_tint: Color10% brand into white — light fills, hover backgrounds.
brand_hover: ColorSlightly darker brand — hover state on solid brand buttons.
brand_active: ColorDarker still — active / pressed state.
brand_text: ColorDark brand variant suitable for text on light surfaces.
bg: ColorPage background tinted with a hint of brand.
border: ColorHairline border in the brand family.
muted: ColorBrand-temperatured neutral gray. Built by mixing 35% brand into
#6b7280 (Tailwind’s gray-500) so muted text never looks
“unrelated” to the brand.
Trait Implementations§
Source§impl Clone for DerivedPalette
impl Clone for DerivedPalette
Source§fn clone(&self) -> DerivedPalette
fn clone(&self) -> DerivedPalette
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 moreSource§impl Debug for DerivedPalette
impl Debug for DerivedPalette
impl Copy for DerivedPalette
Auto Trait Implementations§
impl Freeze for DerivedPalette
impl RefUnwindSafe for DerivedPalette
impl Send for DerivedPalette
impl Sync for DerivedPalette
impl Unpin for DerivedPalette
impl UnsafeUnpin for DerivedPalette
impl UnwindSafe for DerivedPalette
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