# Nardo Grey Theme System - Implementation Guide
## Overview
This theme system is built on Nardo Grey (#4B4B4B) as the foundational brand anchor, with emerald accents and semantic color tokens for maximum readability and visual hierarchy.
## Design Principles
### 1. Nardo Grey Foundation
- **Brand Anchor**: Nardo Grey (#4B4B4B) serves as the primary brand color
- **Not Overwhelming**: Used strategically for backgrounds and accents, never covering everything
- **Sophisticated**: Provides a premium, modern aesthetic without being harsh
### 2. High Contrast Text
- **Ivory Text**: #F5F5F2 instead of pure white for warmth
- **Muted Sand**: #D6D3C9 for secondary text
- **WCAG AA Compliance**: All text combinations meet 4.5:1+ contrast ratios
- **No Washed Out Look**: Deliberate contrast choices prevent text from becoming unreadable
### 3. Emerald Accent System
- **Primary Emerald**: #2ECC71 for light mode, #58D68D for dark mode
- **Confident Color**: Breaks up grey monotony with vibrant, professional accent
- **Versatile**: Works for buttons, links, highlights, and focus states
- **Accessible**: Proper contrast ratios maintained across all usage
## Semantic Token System
### Background Colors
```css
--color-bg-primary: #FAFAFA (light) / #4B4B4B (dark) /* Page backgrounds */
--color-bg-secondary: #F5F5F2 (light) / #3B3B3B (dark) /* Card/section backgrounds */
--color-surface: rgba(255,255,255,0.85) (light) / rgba(75,75,75,0.85) (dark) /* Panels, widgets */
```
### Text Colors
```css
--color-text-primary: #1A1A1A (light) / #F5F5F2 (dark) /* Main text */
--color-text-secondary: #4B4B4B (light) / #D6D3C9 (dark) /* Muted text */
--color-text-tertiary: #6B6B6B (light) / #ABABAB (dark) /* Subtle text */
--color-text-disabled: #ABABAB (light) / #6B6B6B (dark) /* Disabled states */
```
### Accent Colors
```css
--color-accent: #2ECC71 (light) / #58D68D (dark) /* Primary emerald */
--color-accent-hover: #27AE60 (light) / #85E6A3 (dark) /* Hover states */
--color-accent-bg: rgba(46,204,113,0.1) (light) / rgba(88,214,141,0.15) (dark) /* Backgrounds */
--color-accent-border: rgba(46,204,113,0.3) (light) / rgba(88,214,141,0.4) (dark) /* Borders */
```
### Elevation System
```css
--color-elevated-1: rgba(255,255,255,0.9) (light) / rgba(75,75,75,0.6) (dark) /* Subtle elevation */
--color-elevated-2: rgba(255,255,255,0.95) (light) / rgba(75,75,75,0.8) (dark) /* Medium elevation */
--color-elevated-3: #FFFFFF (light) / #6B6B6B (dark) /* High elevation */
```
## Component Usage Patterns
### Buttons
```tsx
// Primary action - emerald accent
// Secondary action - elevated surface with accent border
// Accent background - light emerald
// Minimal styling
```
### Cards
```tsx
// Default card with subtle elevation
...
// Medium elevation for important content
...
// Clean surface for grouped content
...
// Premium glassmorphism effect
...
```
### Tailwind Utility Classes
```tsx
// Backgrounds
{/* Page background */}
{/* Card background */}
{/* Panel background */}
// Text
{/* Main text */}
{/* Muted text */}
{/* Accent text */}
// Elevation
{/* Subtle elevation */}
{/* Medium elevation */}
{/* High elevation */}
// States
{/* Success background + text */}
{/* Warning background + text */}
{/* Error background + text */}
```
### Custom Utility Classes
```tsx
// Pre-built card styles
{/* Default card with borders + shadow */}
{/* Medium elevation card */}
{/* High elevation card */}
// Glass effects
{/* Glassmorphism with backdrop blur */}
{/* Lighter glass effect */}
{/* Stronger glass effect */}
// Interactive elements