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>
695 B
695 B
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 fetchstyles/globals.css— CSS custom properties (--color-primary,--beauty-accent,--health-accent)public/theme.config.json— default brandtailwind.config.ts— token mapping to CSS varscomponents/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.