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
- Keep title ≤ 80 chars; describe outcome
- One primary action; one secondary pathway
- No auth gate on first screen
List + skeleton loading
Empty state
- Explain situation plainly
- Provide one clear next action
- Avoid technical language
Toast vs modal
Use toast for lightweight confirmation; modal for single focused tasks.- 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
Useenv(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