Quick Reference: Professional Color Scheme
π¨ At a Glance
Primary Brand Colors
Brand Primary: #667eea βββ Professional blue-purple
Brand Secondary: #764ba2 βββ Deep purple accent
Brand Accent: #3498db βββ Bright blue
Light Mode
Background: #ffffff βββ Pure white
Background Alt: #f8f9fa βββ Light grey
Card Background: #ffffff βββ White
Text: #2c3e50 βββ Dark blue-grey
Text Muted: #6c757d βββ Medium grey
Border: #e9ecef βββ Light border
Dark Mode
Background: #1a1a2e βββ Dark navy
Background Alt: #16213e βββ Darker navy
Card Background: #25274d βββ Elevated dark
Text: #e8e9ed βββ Light grey
Text Muted: #a8a9b4 βββ Medium grey
Border: #3d3e5a βββ Dark border
Theme Color: #4a9eff βββ Bright blue
Semantic Colors (Both Modes)
Success: #27ae60 βββ Professional green
Warning: #f39c12 βββ Gold/orange
Danger: #e74c3c βββ Professional red
Info: #3498db βββ Info blue
π Gradients
Primary Gradient
Light Mode:
linear-gradient(135deg, #667eea 0%, #764ba2 100%)
Dark Mode:
linear-gradient(135deg, #4a9eff 0%, #7db4ff 100%)
Usage Examples
Buttons
background: var(--gradient-primary);
Section Headers
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
Cards
border: 2px solid transparent;
background: linear-gradient(var(--global-card-bg-color), var(--global-card-bg-color)) padding-box,
var(--gradient-primary) border-box;
π§ CSS Variables Reference
Using in Your Code
/* Background */
background-color: var(--global-bg-color);
/* Text */
color: var(--global-text-color);
/* Theme Color */
color: var(--global-theme-color);
/* Borders */
border: 1px solid var(--global-border-color);
/* Shadows */
box-shadow: 0 4px 15px var(--global-shadow-color);
π Accessibility
Contrast Ratios
All color combinations meet WCAG 2.1 AA standards:
Light Mode:
- Text on Background: 12.6:1 β
- Text Muted on Background: 4.6:1 β
- Theme Color on White: 4.5:1 β
Dark Mode:
- Text on Background: 11.8:1 β
- Text Muted on Background: 5.2:1 β
- Theme Color on Dark: 5.8:1 β
π― Quick Tips
- Always use CSS variables - Never hardcode colors
- Test in both themes - Ensure visibility in light & dark
- Use gradients sparingly - For emphasis only
- Maintain consistency - Stick to the defined palette
- Check contrast - Use browser dev tools
πΌοΈ Color Picker Values
For design tools (Figma, Sketch, Adobe XD):
RGB Values
Brand Primary: rgb(102, 126, 234)
Brand Secondary: rgb(118, 75, 162)
Brand Accent: rgb(52, 152, 219)
Success: rgb(39, 174, 96)
Warning: rgb(243, 156, 18)
Danger: rgb(231, 76, 60)
HSL Values
Brand Primary: hsl(229, 76%, 66%)
Brand Secondary: hsl(270, 37%, 46%)
Brand Accent: hsl(204, 70%, 53%)
Success: hsl(145, 63%, 42%)
Warning: hsl(37, 90%, 51%)
Danger: hsl(6, 78%, 57%)
π Spacing Scale
Use consistent spacing based on 0.5rem (8px):
xs: 0.5rem (8px)
sm: 1rem (16px)
md: 1.5rem (24px)
lg: 2rem (32px)
xl: 3rem (48px)
2xl: 4rem (64px)
π¨ Shadow Scale
sm: 0 2px 8px var(--global-shadow-color)
md: 0 4px 16px var(--global-shadow-color)
lg: 0 8px 32px var(--global-shadow-color)
π± Border Radius
small: 4px
medium: 8px
large: 12px
xl: 16px
round: 50%
Pro Tip: Use browser DevTools to inspect any element and see which CSS variables are being used. This makes it easy to maintain consistency!