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>
31 lines
905 B
Markdown
31 lines
905 B
Markdown
# `shared/design-system/`
|
|
|
|
## Purpose
|
|
|
|
Design system documentation, tokens, composition patterns, and barrel exports — the **semantic layer** above `shared/ui/` primitives.
|
|
|
|
## Legacy source (not moved)
|
|
|
|
- `components/ds/index.ts` — primary barrel
|
|
- Module-specific tokens:
|
|
- `components/beauty/design-system/tokens.ts`
|
|
- `components/healthcare/ui/tokens.ts`
|
|
|
|
## Planned contents
|
|
|
|
- Platform tokens (spacing, radius, shadows) — aligned with `styles/globals.css`
|
|
- `tone` / `variant` conventions
|
|
- Composition guidelines (PageHeader + DataTable + Dialog patterns)
|
|
- Module accent token interface (`--{module}-accent`)
|
|
|
|
## Relationship to `shared/ui/`
|
|
|
|
| Layer | Responsibility |
|
|
|-------|----------------|
|
|
| `design-system/` | Tokens, patterns, docs, exports |
|
|
| `ui/` | Implementation components |
|
|
|
|
## Status
|
|
|
|
📁 Scaffold only — DS remains in `components/ds/`.
|