Skip to main content

UI Patterns

Practical, copy‑pasteable patterns aligned with the Design Principles and Quality Bar. Use these to ship fast and consistently.

First‑run value screen

Guidelines:
  • Keep title ≤ 80 chars; describe outcome
  • One primary action; one secondary pathway
  • No auth gate on first screen

List + skeleton loading

CSS excerpt:

Empty state

Checklist:
  • Explain situation plainly
  • Provide one clear next action
  • Avoid technical language

Toast vs modal

Use toast for lightweight confirmation; modal for single focused tasks.
Rules:
  • Toasts auto-dismiss; do not block navigation
  • Modals: one decision, max two actions, escape route always present

Optimistic action with undo

Auth prompt pattern

Motion

  • 200–300ms ease‑out for transitions
  • Respect prefers‑reduced‑motion
  • Avoid blocking progress with full‑screen loaders

Safe areas

Use env(safe-area-inset-*) and provide padding tokens as in Design Principles.

Pattern checklist

  • Clear value, single primary action
  • Skeletons for loading, meaningful empty states
  • Non‑blocking feedback; accessible focus/roles
  • Works in light/dark; respects safe areas and touch targets