Ui
15 documents
Always show progress
When the UI is waiting on an async task:
Animation & Motion
Motion should be purposeful — guide attention, show spatial relationships, and provide
Color
Use color with intention — never as the sole means of conveying information.
Data Display
Choose the right pattern for the content type and user task.
Feedback Patterns
Every user action should have visible feedback. The weight of the feedback should match
Form Design
Forms are where users do real work. Reduce friction at every step.
Iconography
Icons supplement text — they do not replace it (except for universally understood symbols
Layout
Design for the content, not a fixed screen size. Layouts should adapt gracefully from
Platform Design Languages
Defer to these canonical sources before applying the defaults in this file:
Previews
All UI components MUST include preview declarations for rapid visual verification during development. Previews should...
Spacing
Use a consistent spatial scale based on a **4px base unit** (8px primary grid). All spacing,
State Design
Every view that loads data or can be empty must handle all four states explicitly. Never
Touch & Click Targets
Interactive elements MUST be large enough to tap or click accurately. Defer to the platform
Typography
Use the platform's system font. Establish a type scale with clear roles — don't invent
Visual Hierarchy
Establish clear importance through size, weight, color, and spacing. Every screen should