Skip to content

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

Explore in graph

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 action
  • secondary — neutral action
  • danger — delete / irreversible
  • success — positive bulk status
  • ghost — tertiary / filter toggles

Sizes: sm, md (default), lg.

Forms

  • Use .input-field for text inputs, or FormField wrapper.
  • Use Select from @shared/components/data for dropdowns.
  • Profile edits: track dirty state; show sticky save bar; prompt before tab/route leave.

Tables

  • Desktop: DataTable or ResponsiveTable (sticky header on md+).
  • Mobile: ResponsiveTable card layout or horizontal scroll as fallback.
  • Pagination: shared Pagination component with page numbers.

Layout

  • Authenticated content: fluid max-w-7xl, no hard min-width.
  • Mobile nav: hamburger drawer below lg breakpoint.
  • 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-scheme on first visit; stored preference afterward.
  • Use semantic tokens (brand, surface, muted, danger) over ad-hoc slate colors.