Design review checklist
Run this before calling UI work done. Fix failures or write down the justified exception.
System use
- No raw hex/rgb/hsl colors in components; all colors come from semantic tokens
- Font sizes are all on the type scale; at most two font families and two or three weights
- Spacing values are all on the spacing scale;
gapused for layout spacing - Radius, shadow and z-index values come from tokens
- Existing components were reused instead of re-created
python3 scripts/audit_css.py <changed files>reports nothing unexplained
Hierarchy and layout
- The most important element on the screen is obvious within a second
- One primary action per view or section
- Related items are closer together than unrelated items
- Few, consistent alignment edges; text is left-aligned except short standalone lines
- Prose is limited to about 65 characters per line
- Works at 320px wide with no horizontal page scroll, and on a wide desktop without stretched lines
States
- Loading, empty, error and success states exist for every data-driven view
- Hover, active, focus-visible and disabled states exist for every control
- Long names, long numbers, missing images and zero/one/many items do not break the layout
- Buttons show pending state and cannot double-submit
Color and accessibility
- Every text/background pair checked with
scripts/contrast.py(4.5:1, or 3:1 for large text) - Focus indicators visible with at least 3:1 contrast
- Meaning never depends on color alone
- Keyboard-only walkthrough of the flow works, including Escape to close overlays
- Dark mode (if supported) checked for contrast and for hard-coded colors
Copy
- Buttons say what they do; labels are consistent in wording and case
- Error messages say what happened and how to fix it
- No placeholder or lorem ipsum text left
Motion and performance
- Transitions are short and respect
prefers-reduced-motion - No layout shift when content or fonts load