Move business logic out of App Router into module packages, add boundary validation scripts, and keep all routes as thin re-exports without changing URLs or API behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
695 B
Markdown
24 lines
695 B
Markdown
# `shared/theme/`
|
|
|
|
## Purpose
|
|
|
|
White-label theming: CSS variable application, tenant brand loading, dark mode integration.
|
|
|
|
## Legacy source (not moved)
|
|
|
|
- `lib/theme.ts` — `applyTheme`, tenant theme fetch
|
|
- `styles/globals.css` — CSS custom properties (`--color-primary`, `--beauty-accent`, `--health-accent`)
|
|
- `public/theme.config.json` — default brand
|
|
- `tailwind.config.ts` — token mapping to CSS vars
|
|
- `components/ThemeProvider.tsx`, `components/providers/ColorModeProvider.tsx`
|
|
|
|
## Planned contents
|
|
|
|
- Theme loader and applier
|
|
- Token definitions (TypeScript)
|
|
- Tailwind preset export
|
|
|
|
## Status
|
|
|
|
📁 Scaffold only — theme code remains in legacy paths.
|