## 1. CSS and variant setup - [x] 1.1 Add `@custom-variant dark (&:where(.dark, .dark *))` to `globals.css` and update `:root` / `@theme` blocks with dark-mode CSS variable overrides. ## 2. Theme toggle infrastructure - [x] 2.1 Create `src/components/theme-toggle.tsx` — a client component that reads and writes `localStorage` theme preference, toggles the `dark` class on ``, and renders a sun/moon button. - [x] 2.2 Update `src/app/layout.tsx` to inject the inline blocking script in `` and render `ThemeToggle` in the header alongside `SiteNav`. ## 3. Component dark-mode styles - [x] 3.1 Update `src/components/site-nav.tsx` with `dark:` variants for link backgrounds, borders, and text. - [x] 3.2 Update `src/components/home-dashboard.tsx` with `dark:` variants for all section cards, stat tiles, insight blocks, progress bars, and empty states. - [x] 3.3 Update `src/components/expense-workspace.tsx` with `dark:` variants for the form card, list card, inputs, and expense articles. - [x] 3.4 Update `src/components/paycheck-workspace.tsx` with `dark:` variants for the schedule panel, form, and paycheck list. - [x] 3.5 Update `src/components/recurring-expense-manager.tsx` with `dark:` variants for the panel, inline form, and definition articles. ## 4. Page header text - [x] 4.1 Update hardcoded text colours in `src/app/add-expense/page.tsx` and `src/app/income/page.tsx` with `dark:` overrides. ## 5. Verification - [ ] 5.1 Visually verify light and dark modes across the dashboard, add-expense, and income pages in the browser. - [ ] 5.2 Verify that theme preference persists across page refreshes and that there is no flash of the wrong theme on load.