pub struct ColorPalette {Show 34 fields
pub background: [u8; 3],
pub foreground: [u8; 3],
pub card: [u8; 3],
pub card_foreground: [u8; 3],
pub popover: [u8; 3],
pub popover_foreground: [u8; 3],
pub primary: [u8; 3],
pub primary_foreground: [u8; 3],
pub secondary: [u8; 3],
pub secondary_foreground: [u8; 3],
pub muted: [u8; 3],
pub muted_foreground: [u8; 3],
pub accent: [u8; 3],
pub accent_foreground: [u8; 3],
pub destructive: [u8; 3],
pub destructive_foreground: [u8; 3],
pub border: [u8; 3],
pub input: [u8; 3],
pub ring: [u8; 3],
pub chart_1: [u8; 3],
pub chart_2: [u8; 3],
pub chart_3: [u8; 3],
pub chart_4: [u8; 3],
pub chart_5: [u8; 3],
pub hover: [u8; 3],
pub focus: [u8; 3],
pub sidebar: [u8; 3],
pub sidebar_foreground: [u8; 3],
pub sidebar_primary: [u8; 3],
pub sidebar_primary_foreground: [u8; 3],
pub sidebar_accent: [u8; 3],
pub sidebar_accent_foreground: [u8; 3],
pub sidebar_border: [u8; 3],
pub sidebar_ring: [u8; 3],
}Expand description
Color palette using shadcn/ui naming conventions All colors stored as [R, G, B] for serializability
Fields§
§background: [u8; 3]Default background color
foreground: [u8; 3]Default foreground (text) color
card: [u8; 3]Card background color for elevated surfaces
card_foreground: [u8; 3]Card foreground (text) color
popover: [u8; 3]Popover background color
popover_foreground: [u8; 3]Popover foreground (text) color
primary: [u8; 3]Primary brand color
primary_foreground: [u8; 3]Primary foreground (text) color
secondary: [u8; 3]Secondary color
secondary_foreground: [u8; 3]Secondary foreground (text) color
muted: [u8; 3]Muted/subtle background color
muted_foreground: [u8; 3]Muted foreground (text) color
accent: [u8; 3]Accent color
accent_foreground: [u8; 3]Accent foreground (text) color
destructive: [u8; 3]Destructive/error color
destructive_foreground: [u8; 3]Destructive foreground (text) color
border: [u8; 3]Border color
input: [u8; 3]Input border color
ring: [u8; 3]Focus ring color
chart_1: [u8; 3]Chart color 1 for data visualization
chart_2: [u8; 3]Chart color 2 for data visualization
chart_3: [u8; 3]Chart color 3 for data visualization
chart_4: [u8; 3]Chart color 4 for data visualization
chart_5: [u8; 3]Chart color 5 for data visualization
hover: [u8; 3]Hover state color
focus: [u8; 3]Focus state color
Sidebar background color
Sidebar foreground (text) color
Sidebar primary color
Sidebar primary foreground (text) color
Sidebar accent color
Sidebar accent foreground (text) color
Sidebar border color
Sidebar focus ring color
Trait Implementations§
Source§impl Clone for ColorPalette
impl Clone for ColorPalette
Source§fn clone(&self) -> ColorPalette
fn clone(&self) -> ColorPalette
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more