project-nomad/admin/inertia/hooks
Chris Sherwood e8d775dfe4 feat(UI): add Night Ops dark mode with theme toggle
Add a warm charcoal dark mode ("Night Ops") using CSS variable swapping
under [data-theme="dark"]. All 23 desert palette variables are overridden
with dark-mode counterparts, and ~313 generic Tailwind classes (bg-white,
text-gray-*, border-gray-*) are replaced with semantic tokens.

Infrastructure:
- CSS variable overrides in app.css for both themes
- ThemeProvider + useTheme hook (localStorage + KV store sync)
- ThemeToggle component (moon/sun icons, "Night Ops"/"Day Ops" labels)
- FOUC prevention script in inertia_layout.edge
- Toggle placed in StyledSidebar and Footer for access on every page

Color replacements across 50 files:
- bg-white → bg-surface-primary
- bg-gray-50/100 → bg-surface-secondary
- text-gray-900/800 → text-text-primary
- text-gray-600/500 → text-text-secondary/text-text-muted
- border-gray-200/300 → border-border-subtle/border-border-default
- text-desert-white → text-white (fixes invisible text on colored bg)
- Button hover/active states use dedicated btn-green-hover/active vars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 09:17:05 -07:00
..
useDebounce.ts feat: [wip] custom map and zim downloads 2025-12-02 08:25:09 -08:00
useDownloads.ts feat: background job overhaul with bullmq 2025-12-06 23:59:01 -08:00
useEmbedJobs.ts feat(RAG): display embedding queue and improve progress tracking 2026-03-04 20:05:14 -08:00
useErrorNotification.ts feat: container controls & convienience scripts 2025-08-08 15:07:32 -07:00
useInternetStatus.ts feat: easy setup wizard 2026-01-15 15:54:59 -08:00
useMapRegionFiles.ts feat: [wip] new maps system 2025-11-30 22:29:16 -08:00
useOllamaModelDownloads.ts feat: display model download progress 2026-02-06 16:22:23 -08:00
useServiceInstallationActivity.ts feat: display model download progress 2026-02-06 16:22:23 -08:00
useServiceInstalledStatus.tsx feat(AI): chat suggestions and assistant settings 2026-02-01 07:24:21 +00:00
useSystemInfo.ts fix(CuratedCategories): improve fetching from Github 2026-01-19 14:41:51 -08:00
useSystemSetting.ts feat(AI): chat suggestions and assistant settings 2026-02-01 07:24:21 +00:00
useTheme.ts feat(UI): add Night Ops dark mode with theme toggle 2026-03-16 09:17:05 -07:00
useUpdateAvailable.ts feat: cron job for system update checks 2026-02-06 15:40:30 -08:00