# Ocean Aqua - Complete Design System
> Version 1.0 - Theme 20 in the catalog - slug `ocean-aqua`

---

## Table of Contents

1. [System Overview](#1-system-overview)
2. [CSS Custom Properties - Master Token Sheet](#2-css-custom-properties--master-token-sheet)
3. [Color Palette](#3-color-palette)
4. [Typography System](#4-typography-system)
5. [Spacing System](#5-spacing-system)
6. [Border Radius System](#6-border-radius-system)
7. [Shadow & Elevation System](#7-shadow--elevation-system)
8. [Component Specifications](#8-component-specifications)
9. [Layout & Grid System](#9-layout--grid-system)
10. [Animation & Transition Tokens](#10-animation--transition-tokens)
11. [Z-Index System](#11-z-index-system)
12. [Breakpoints](#12-breakpoints)
13. [Icon System](#13-icon-system)
14. [State Definitions](#14-state-definitions)

---

## 1. System Overview

**Design Language:** Ocean Aqua
**Mode:** Light
**Typeface:** Rubik
**Personality:** Fresh teal and sea-glass surfaces with bubble corners, coral accents and Rubik type.
**Best Suited For:** Travel, health and fitness, weather, booking and utility apps, friendly SaaS

**Core Principles:**
- Bubble corners: cards are 30px 30px 8px 30px. The small corner sits bottom right.
- Teal (#077689) for actions, coral (#ff9f68) as a tiny accent. Never both on one button.
- Shadows are soft and blue-tinted, never black.
- Rubik at weights 400, 500, 700 for everything.

---

## 2. CSS Custom Properties - Master Token Sheet

All tokens are scoped under `[data-ds="ocean-aqua"]`. Nothing is defined at `:root`. The same sheet ships as `tokens.css` in this system's folder.

```css
/*
 * Ocean Aqua - scoped design-system tokens (Theme 20 in catalog).
 */

[data-ds="ocean-aqua"] {
  --ds-color-bg-base: #e8fbfc;
  --ds-color-bg-surface: #ffffff;
  --ds-color-bg-sunken: #d3f3f5;
  --ds-color-bg-secondary: #cdeff2;
  --ds-color-bg-overlay: rgba(6,57,74,0.4);

  --ds-color-primary: #077689;
  --ds-color-primary-hover: #066879;
  --ds-color-primary-active: #055c6b;
  --ds-color-primary-fg: #ffffff;

  --ds-color-text-primary: #06394a;
  --ds-color-text-secondary: #2c5f6f;
  --ds-color-text-tertiary: #3a6c7b;
  --ds-color-text-muted: #3a6c7b;
  --ds-color-text-disabled: #8db5bd;
  --ds-color-text-inverse: #ffffff;

  --ds-color-border-light: #b5e6ea;
  --ds-color-border-medium: #8fd3d9;
  --ds-color-border-strong: #077689;

  --ds-color-success: #1b7441;
  --ds-color-success-bg: #d7f2e0;
  --ds-color-warning: #8a5700;
  --ds-color-warning-bg: #fff0cc;
  --ds-color-error: #c0262d;
  --ds-color-error-bg: #fde3e4;
  --ds-color-info: #1d5fbf;
  --ds-color-info-bg: #dce9fb;

  --ds-font-display: "Rubik", system-ui, sans-serif;
  --ds-font-body: "Rubik", system-ui, sans-serif;
  --ds-font-label: "Rubik", system-ui, sans-serif;
  --ds-label-transform: none;
  --ds-label-tracking: 0.01em;
  --ds-label-weight: 500;
  --ds-heading-tracking: -0.01em;
  --ds-heading-weight: 700;

  --ds-radius-badge: 999px;
  --ds-radius-sm: 12px;
  --ds-radius-md: 14px;
  --ds-radius-lg: 30px;
  --ds-radius-xl: 36px;
  --ds-radius-full: 9999px;

  --ds-border-width: 1px;

  --ds-shadow-card: 0 14px 30px rgba(6,57,74,0.16);
  --ds-shadow-dropdown: 0 14px 30px rgba(6,57,74,0.2);
  --ds-shadow-modal: 0 24px 56px rgba(6,57,74,0.28);
  --ds-shadow-focus: 0 0 0 3px rgba(7,118,137,0.35);
  --ds-shadow-btn-hover: 0 8px 18px rgba(7,118,137,0.35);

  --ds-btn-text-transform: none;
  --ds-btn-letter-spacing: 0em;
  --ds-btn-font-weight: 500;
  --ds-btn-active-transform: scale(0.97);
  --ds-btn-secondary-bg: #ff9f68;
  --ds-btn-secondary-text: #4a1d00;
  --ds-btn-secondary-border: #ff9f68;
  --ds-btn-secondary-hover-bg: #e68f5e;
  --ds-btn-outline-text: #06394a;
  --ds-btn-outline-border: #077689;
  --ds-btn-outline-hover-bg: #cdeff2;
  --ds-btn-outline-hover-text: #06394a;

  --ds-table-header-bg: #b5e6ea;
  --ds-table-header-text: #06394a;
  --ds-table-header-border-bottom: 1px solid #8fd3d9;
  --ds-table-container-radius: 30px 30px 8px 30px;
  --ds-table-container-border: 1px solid #b5e6ea;

  --ds-focus-ring: 0 0 0 3px rgba(7,118,137,0.35);

  --ds-ease-standard: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ds-duration-fast: 120ms;
  --ds-duration-base: 200ms;
  --ds-duration-slow: 300ms;
}

[data-ds="ocean-aqua"] { background: linear-gradient(180deg, #e8fbfc 0%, #c7f0f3 100%); }
[data-ds="ocean-aqua"] .ds-card, [data-ds="ocean-aqua"] .ds-modal { border-radius: 30px 30px 8px 30px; }
```

---

## 3. Color Palette

### 3.1 Core Colors

| Role | Value |
|---|---|
| Page background | `#e8fbfc` |
| Surface | `#ffffff` |
| Sunken | `#d3f3f5` |
| Secondary surface | `#cdeff2` |
| Primary action | `#077689` |
| Primary text on action | `#ffffff` |
| Accent / secondary button | `#ff9f68` |
| Accent text | `#4a1d00` |
| Text primary | `#06394a` |
| Text secondary | `#2c5f6f` |
| Text muted | `#3a6c7b` |
| Border light | `#b5e6ea` |
| Border strong | `#077689` |

### 3.2 Semantic Colors

| Status | Foreground | Background | Contrast |
|---|---|---|---|
| Success | `#1b7441` | `#d7f2e0` | 4.9:1 |
| Warning | `#8a5700` | `#fff0cc` | 5.4:1 |
| Error | `#c0262d` | `#fde3e4` | 4.9:1 |
| Info | `#1d5fbf` | `#dce9fb` | 5.0:1 |

### 3.3 Contrast Checks

All pairs below meet WCAG AA (4.5:1) for normal text.

| Pair | Colors | Ratio |
|---|---|---|
| Body text | `#06394a` on `#e8fbfc` | 11.6:1 |
| Secondary text | `#2c5f6f` on `#e8fbfc` | 6.6:1 |
| Muted text | `#3a6c7b` on `#e8fbfc` | 5.4:1 |
| Primary button label | `#ffffff` on `#077689` | 5.3:1 |
| Accent button label | `#4a1d00` on `#ff9f68` | 7.1:1 |
| Table header | `#06394a` on `#b5e6ea` | 9.1:1 |

---

## 4. Typography System

### 4.1 Font Families

| Role | Family | Usage |
|---|---|---|
| Display | Rubik | Headings, hero titles, buttons |
| Body | Rubik | Body copy, form fields |
| Label | Rubik | Labels, badges, metadata |

### 4.2 Type Scale

| Token | Size | Weight | Tracking | Use |
|---|---|---|---|---|
| Display | 48-64px | 700 | -0.01em | Hero title |
| H1 | 36px | 700 | -0.01em | Page title |
| H2 | 28px | 700 | -0.01em | Section title |
| H3 | 20px | 700 | -0.01em | Card title |
| Body | 16px | 400 | 0 | Paragraphs |
| Label | 12px | 500 | 0.01em | Eyebrows, badges (none) |

### 4.3 Google Fonts Import Block

```css
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap");
```

The same URL is loaded by `app/design-systems/fonts.ts`.

---

## 5. Spacing System

Base unit: 4px. Use only these steps.

| Token | Value |
|---|---|
| space-1 | 4px |
| space-2 | 8px |
| space-3 | 12px |
| space-4 | 16px |
| space-6 | 24px |
| space-8 | 32px |
| space-12 | 48px |
| space-16 | 64px |

Component padding: card 24px, button 10px 20px (md), input 10px 14px, badge 2px 10px.

---

## 6. Border Radius System

| Element | Radius |
|---|---|
| Badge | 999px |
| Small controls (checkbox) | 12px |
| Buttons, inputs | 14px |
| Cards, modals | 30px (asymmetric, see tokens.css) |
| Large panels | 36px |
| Avatars, switches | 9999px |

Border width: 1px.

---

## 7. Shadow & Elevation System

| Level | Value |
|---|---|
| Card | `0 14px 30px rgba(6,57,74,0.16)` |
| Dropdown | `0 14px 30px rgba(6,57,74,0.2)` |
| Modal | `0 24px 56px rgba(6,57,74,0.28)` |
| Focus | `0 0 0 3px rgba(7,118,137,0.35)` |
| Button hover | `0 8px 18px rgba(7,118,137,0.35)` |

---

## 8. Component Specifications

### 8.1 Buttons
- Primary: background `--ds-color-primary`, label `--ds-color-primary-fg`. Hover `#066879`, active `#055c6b`.
- Secondary: background `#ff9f68`, label `#4a1d00`.
- Outline: transparent, border `#077689`, label `#06394a`.
- Label style: `none` text, weight 500, tracking 0em.
- Active (pressed): `transform: scale(0.97)`.

### 8.2 Form Inputs
Surface background, 1px border `#8fd3d9`, radius 14px. Focus uses the focus shadow. Error border `#c0262d`.

### 8.3 Labels
Font Rubik, none, weight 500, tracking 0.01em, colour `#3a6c7b`.

### 8.4 Card / Surface
Background `#ffffff`, border 1px `#b5e6ea`, radius 30px, shadow card.

### 8.5 Badge
Pill or 999px radius, label style, semantic backgrounds from section 3.2.

### 8.6 Checkbox, Radio and Switch
Checked fill `#077689`, mark `#ffffff`. Switch track uses border strong when off.

### 8.7 Table
Header background `#b5e6ea`, header text `#06394a`. Container border `1px solid #b5e6ea`, radius 30px 30px 8px 30px.

### 8.8 Dropdown Panel
Surface background, border 1px `#8fd3d9`, dropdown shadow, item hover uses `#cdeff2`.

---

## 9. Layout & Grid System

| Container | Max width |
|---|---|
| Narrow (forms, articles) | 640px |
| Default | 1040px |
| Wide (dashboards) | 1280px |

12-column grid, 24px gutters on desktop, 16px on mobile.

---

## 10. Animation & Transition Tokens

| Token | Value |
|---|---|
| Easing | `cubic-bezier(0.25, 0.8, 0.25, 1)` |
| Fast | 120ms |
| Base | 200ms |
| Slow | 300ms |

Animate colour, transform, opacity and shadow only. Never animate layout properties.

---

## 11. Z-Index System

| Layer | Value |
|---|---|
| Base | 0 |
| Sticky header | 10 |
| Dropdown | 20 |
| Modal backdrop | 40 |
| Modal | 50 |
| Toast | 60 |

---

## 12. Breakpoints

| Name | Min width |
|---|---|
| sm | 640px |
| md | 768px |
| lg | 1024px |
| xl | 1280px |

Page padding: 16px below md, 24px at md, 32px at lg and up.

---

## 13. Icon System

Use Lucide icons at 16, 20 or 24px, stroke 2px (1.5px for Ocean Aqua if the type is light). Icon colour follows text colour. Never use filled multi-colour icons.

---

## 14. State Definitions

| State | Treatment |
|---|---|
| Hover | Darker or lighter primary (see 8.1), shadow `0 8px 18px rgba(7,118,137,0.35)` |
| Active | `scale(0.97)` |
| Focus | `0 0 0 3px rgba(7,118,137,0.35)` |
| Disabled | Text `#8db5bd`, no shadow, cursor not-allowed |
| Error | Border `#c0262d`, message in the same colour |
| Success | Border `#1b7441` |
