Copy of DESIGN.md from smart_apply_frontend
Generated from smart_apply_frontend/DESIGN.md at commit b55f41c3. Edit the source file, not this copy.
Aetherion Copilot — UI/UX Guidelines¶
Feedback patterns¶
- Toast (
useToast/useMutationToast): transient success/error after mutations (save, delete, assign, status change). - ErrorBanner: persistent inline errors on the current page (validation, load failures).
- SuccessBanner: avoid for mutations; prefer toast. Use banner only for multi-step inline validation context.
- EmptyState: all list/table zero-results states; include title, description, and optional CTA.
- ConfirmSheet: destructive or irreversible actions (delete user, confirm status). Never use
window.confirm.
Buttons¶
Use @shared/components/data/Button with variants:
primary— main actionsecondary— neutral actiondanger— delete / irreversiblesuccess— positive bulk statusghost— tertiary / filter toggles
Sizes: sm, md (default), lg.
Forms¶
- Use
.input-fieldfor text inputs, orFormFieldwrapper. - Use
Selectfrom@shared/components/datafor dropdowns. - Profile edits: track dirty state; show sticky save bar; prompt before tab/route leave.
Tables¶
- Desktop:
DataTableorResponsiveTable(sticky header on md+). - Mobile:
ResponsiveTablecard layout or horizontal scroll as fallback. - Pagination: shared
Paginationcomponent with page numbers.
Layout¶
- Authenticated content: fluid
max-w-7xl, no hard min-width. - Mobile nav: hamburger drawer below
lgbreakpoint. - Bulk actions: bottom dock, not top-fixed bars.
Accessibility¶
- Modals/sheets: focus trap + Escape to close + restore focus.
- Nav menus:
role="menu", keyboard Escape, use router location for active state. - Table headers:
scope="col".
Theming¶
- Theme respects
prefers-color-schemeon first visit; stored preference afterward. - Use semantic tokens (
brand,surface,muted,danger) over ad-hoc slate colors.