Colors
The color system provides a consistent palette across all components while supporting brand-specific customization through CSS variables.
Switch brands to see how colors adapt to different brand identities:
Core Colors
Core colors define the primary visual identity of the brand. These colors are used throughout the interface for branding, interactive elements, and backgrounds.
Primary
--color-primary
Secondary
--color-secondary
Accent
--color-accent
Background
--color-background
Surface
--color-surface
Background Colors
Background colors create layered surfaces and visual depth. These tokens define the hierarchy of backgrounds across components and layouts.
Background
--color-background
Surface
--color-surface
Background Primary
--color-bg-primary
Background Secondary
--color-bg-secondary
Background Tertiary
--color-bg-tertiary
Text Colors
Text colors ensure proper hierarchy and readability across different backgrounds and contexts.
Text Primary
--color-text-primary
Text Secondary
--color-text-secondary
Text Muted
--color-text-muted
Status Colors
Status colors communicate feedback and states to users. These remain consistent across brands for universal recognition.
Success
--color-success
Warning
--color-warning
Error
--color-error
Usage
CSS Variables
Colors are available as CSS custom properties. This allows components to automatically adapt when the brand theme changes.
1/* Using CSS Variables */2.button-primary {3 background-color: var(--color-primary);4 color: var(--color-surface);5}67.card {8 background-color: var(--color-surface);9 border: 1px solid var(--color-text-muted);10}1112.text-muted {13 color: var(--color-text-secondary);14}
Tailwind Classes
When using Tailwind CSS, the color classes are configured to use the CSS variables, enabling seamless theme switching.
1<!-- Using Tailwind classes (configured) -->2<button class="bg-primary text-white">3 Primary Button4</button>56<div class="bg-surface text-text-primary">7 Card content8</div>910<p class="text-text-secondary">11 Secondary text12</p>
Brand-Specific Extended Palette
Each brand may have an extended color palette for product-specific styling. Currently viewing the House of Brands palette.
House of Brands Master Palette
House of Brands embraces vibrant colors inspired by traditional Madhubani art. The palette is intentionally diverse to support the brand's celebratory, maximalist aesthetic.
Reds & Pinks
Deep Red
deepRed
Crimson
crimson
Coral Pink
coralPink
Red
red
Magenta
magenta
Yellows & Golds
Golden Yellow
goldenYellow
Yellow
yellow
Amber
amber
Mustard
mustardYellow
Greens
Forest Green
forestGreen
Bright Green
brightGreen
Lime Green
limeGreen
Dark Green
darkGreen
Blues
Navy Blue
navyBlue
Deep Blue
deepBlue
Royal Blue
royalBlue
Sky Blue
skyBlue
Indigo
indigo
Accessibility
All color combinations used in the design system meet WCAG 2.1 AA contrast requirements:
- Normal text: minimum 4.5:1 contrast ratio
- Large text (18px+): minimum 3:1 contrast ratio
- Interactive elements: minimum 3:1 contrast ratio against backgrounds
Design Token Reference
| Token | Current Value | Description |
|---|---|---|
--color-primary | #038012 | Primary |
--color-secondary | #8B9F4A | Secondary |
--color-accent | #C4A962 | Accent |
--color-background | #FFF9EE | Background |
--color-surface | #FFFFFF | Surface |
--color-text-primary | #101010 | Text Primary |
--color-text-secondary | #4A4A4A | Text Secondary |
--color-text-muted | #8A8A8A | Text Muted |
--color-success | #2F855A | Success |
--color-warning | #D69E2E | Warning |
--color-error | #C53030 | Error |
