Swap visual identity to shadcn preset b311momZs0 with real light/dark mode
Re-themes the whole app by bridging the existing cobalt token names in src/index.css to shadcn's new CSS variables, rather than rewriting every component. Adds ThemeContext + a Settings appearance toggle so .dark now actually gets applied somewhere in the app - closing the token collision where shadcn's --color-background/--color-primary/--color-secondary would otherwise silently fall back to shadcn's light values next to an all-dark app. Defaults new visitors to dark to match the app's prior dark-only behavior. Self-hosts DM Sans/Outfit via @fontsource-variable instead of the old Google Fonts link. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
components.json
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
| ... | ... | @@ -12,13 +12,19 @@ |
| "test:watch": "vitest" | ||
| }, | ||
| "dependencies": { | ||
| "@base-ui/react": "^1.8.0", | ||
| "@fontsource-variable/dm-sans": "^5.3.0", | ||
| "@fontsource-variable/outfit": "^5.3.0", | ||
| "@vitejs/plugin-basic-ssl": "^2.3.0", | ||
| "class-variance-authority": "^0.7.1", | ||
| "cn": "^0.4.0", | ||
| "leaflet": "^1.9.4", | ||
| "lucide-react": "^1.31.0", | ||
| "react": "^19.2.8", | ||
| "react-dom": "^19.2.8", | ||
| "react-leaflet": "^5.0.0", | ||
| "react-router-dom": "^7.18.2" | ||
| "react-router-dom": "^7.18.2", | ||
| "tw-animate-css": "^1.4.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@tailwindcss/vite": "^4.3.3", | ||
| ... | ... | @@ -32,6 +38,7 @@ |
| "@vitejs/plugin-react": "^6.0.4", | ||
| "jsdom": "^29.1.1", | ||
| "oxlint": "^1.75.0", | ||
| "shadcn": "^4.21.3", | ||
| "tailwindcss": "^4.3.3", | ||
| "typescript": "~6.0.2", | ||
| "vite": "^8.2.0", | ||
| ... | ... |
src/context/ThemeContext.tsx
0 → 100644
src/lib/utils.ts
0 → 100644
Please
register
or
sign in
to comment