TorbatYar/frontend/shared/design-system/README.md
Mortezakoohjani 6f4a484051 Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture.
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>
2026-07-26 22:28:27 +03:30

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/`.