# design.md — Solvway Customer Portal (Tastefully Events) Live design log for **`solvway-customer-portal/`** only. Nothing here applies to other apps in the monorepo. Update this file in the same session as any component, token or style change. - **Stack:** Next.js (App Router), Tailwind CSS 3, Framer Motion, lucide-react icons, Geist font - **Project type:** conversion-focused member app (mobile-first PWA) — soft rounding, spacious, one orange accent - **Source of truth for tokens:** [app/globals.css](app/globals.css) (CSS variables) and [tailwind.config.ts](tailwind.config.ts) --- ## 1. Brand assets | Asset | Value | Notes | |---|---|---| | Primary brand orange | `#FF6B00` | Fills, icons, glows. **Not for small text on light surfaces** (2.9:1) | | Orange for text | `--orange-text` → `#B84700` light / `#FF6B00` dark | 5.3:1 on white, 6.1:1 on `#1a1a1a`. Tailwind: `text-tastefullyOrangeText` | | Dark / ink | `#1a1a1a` | Body text (light) and app background (dark). No pure black | | Accent purple | `#290a81` | Gradients and poster tiles only. **Never as text on dark** (1.2:1) | | Logo | [TastefullyLogo.tsx](app/components/TastefullyLogo.tsx) | Wordmark + chef mark; chef mark reused in `MemberAvatar` | | Font | **Geist** (`--font-geist-sans`) via `next/font/google` | Fallback `system-ui, sans-serif`. `Twemoji Country Flags` is prepended for Windows flag emoji | | Theme colour (PWA) | `#FF6B00` | `viewport.themeColor` in [layout.tsx](app/layout.tsx) | | App name | "Tastefully Events" (iOS home-screen title "TastefullyXP") | `metadata` in layout.tsx | --- ## 2. Colour tokens ### 2.1 CSS variables (`:root` = light, `.dark` = dark) | Token | Light | Dark | Used for | |---|---|---|---| | `--bg-primary` | `#fafafa` | `#1a1a1a` | Page background | | `--bg-backdrop` | `#E5DFDA` | `#101010` | Desktop backdrop outside the frame | | `--bg-card` | `#FFFFFF` | `rgba(255,255,255,0.06)` | Cards | | `--bg-card-alt` | `#FAF7F4` | `rgba(255,255,255,0.03)` | Secondary card / inset | | `--text-primary` | `#1a1a1a` | `#FFFFFF` | Headings, body | | `--text-secondary` | `#5C5C5C` (6.7:1) | `rgba(255,255,255,0.8)` (≈10:1) | Supporting text | | `--text-muted` | `#6B6B6B` (5.3:1) | `rgba(255,255,255,0.6)` (6.3:1) | Labels, dates, counts | | `--border-color` | `rgba(0,0,0,0.07)` | `rgba(255,255,255,0.08)` | Hairlines | | `--shadow-card` | `0 2px 20px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04)` | `0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06)` | `.surface-card` | | `--nav-bg` / `--nav-border` | white 92% / `rgba(0,0,0,.07)` | `rgba(10,10,10,.95)` / `rgba(255,255,255,.06)` | Header / bottom nav | | `--tastefully-orange` | `#FF6B00` | same | Brand orange | | `--tastefully-dark` | `#1a1a1a` | same | | | `--tastefully-accent` | `#290a81` | same | | | `--orange-text` | `#B84700` | `#FF6B00` | Orange used as text | | `--option-bg` / `--option-text` | `#FFF` / `#1a1a1a` | `#1a1a1a` / `#FFF` | Native `