Color System
The color palette is defined insrc/styles/theme.css and follows a numbered system (1-4) representing different semantic purposes:
Primary Colors
theme.css
Usage Guidelines
Color 1 - Background
Light beige background color (
#F2F1EB) used for main page backgrounds and sectionsColor 2 - Secondary
Medium gray (
#AEADA5) for secondary text, borders, and subtle UI elementsColor 3 - Accent
Gold/ochre accent (
#D7AE56) for CTAs, highlights, and premium touchesColor 4 - Text
Dark gray ochre (
#53534B) for primary text and headingsSpecial Purpose Colors
Dark Theme
The theme system supports dark mode through a data attribute approach:theme.css
Using Dark Theme
Apply the dark theme to any section or component:.theme-dark utility class for contextual styling:
global.css
Typography Variables
Font family variables use the Onest font family throughout:theme.css
Font Sizes (Desktop)
Responsive Font Sizes (Mobile)
Font sizes automatically adjust on mobile devices:theme.css
Layout Variables
Spacing and layout dimensions are controlled through CSS variables:Animation Variables
Premium easing and duration values for smooth animations:theme.css
Usage Example
Theme Utilities
Additional helper variables inglobal.css:
global.css
Best Practices
Always use CSS variables
Always use CSS variables
Use
var(--color-3) instead of hardcoding hex values to maintain consistencyRespect the semantic meaning
Respect the semantic meaning
Don’t use
--color-3 for text if it’s meant for accents. Use the appropriate color variable for its intended purposeTest in both themes
Test in both themes
When creating new components, verify they work correctly in both light and dark themes
Leverage responsive variables
Leverage responsive variables
The system automatically adjusts for mobile—use the CSS variables instead of writing custom media queries
Related Resources
Typography
Learn about the typography system
Responsive Design
Explore responsive utilities