Plank/Adopt

Twelve ready-made standards you can adopt and tune.

Layout

  • No horizontal overflow
  • Drawers stay inside viewport
  • No clipped text containers

Typography

Aa
65ch
  • Body line length under 75ch
  • Minimum 14px body copy
  • Heading scale steps cleanly

Color & contrast

Aa
7.4:1
  • Body text meets 4.5:1 contrast
  • Focus rings visible on all surfaces
  • Status never relies on color alone

Density

8px
  • Touch targets stay at least 44px
  • Minimum 8px gap between controls
  • Form controls share consistent height

Composition

Fold
  • Primary CTA stays above fold
  • Card grids keep even alignment
  • Dialogs center within viewport

Responsive

→
  • Grids reflow cleanly at 360px
  • Navigation adapts below 768px
  • Images hold their aspect ratio

Interaction

Tab→
Focused
  • Escape returns focus to trigger
  • Focus stays trapped in open dialogs
  • Every action reachable by keyboard

Accessibility

main
h1 Checkout
h2 Summary
  • Every input has an accessible label
  • Exactly one h1 per page
  • No skipped heading levels

States

  • Empty views include a clear next step
  • Loading skeletons hold layout height
  • Validation errors link to their field

Motion

Motion
Reduced
  • Respects reduced motion preference
  • UI transitions finish under 300ms
  • No autoplay loops without pause

Performance

CLS0.02
  • Cumulative layout shift under 0.1
  • Zero uncaught console errors
  • First paint stays within budget

Design tokens

--accent
  • Primary actions bind to theme token
  • Surfaces avoid hardcoded hex colors
  • Spacing follows system scale steps