TorbatYar/frontend/docs/loyalty-design-system.md
Mortezakoohjani d579d0b142 feat(loyalty): add Loyalty Platform Frontend module
Add frontend/modules/loyalty with types, API client, design system, feature pages and thin App Router routes under app/loyalty/. BFF proxy at app/api/loyalty/. Include loyalty frontend docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 10:50:55 +03:30

22 lines
551 B
Markdown

# Loyalty Design System
## Tokens (`globals.css`)
- `--loyalty-accent` / `--loyalty-accent-soft`
- `--loyalty-success` / `--loyalty-warning` / `--loyalty-danger`
- Dark mode variants included
## Reuse
Primary UI from `@/components/ds` (PageHeader, DataTable, Dialog, Drawer, EmptyState, Badge, …).
Module-specific:
- `LoyaltyTablePage` / `LoyaltyStatGrid`
- `LoyaltyStatusChip`
- Portal shell accent colors
## Principles
RTL-first, mobile sidebar drawer, dark mode toggle in shell, keyboard shortcuts (`g h/m/p/r/c/w`).