Skip to main content
02 / Foundations

Effects

Shadows, transitions, and the entrance pattern. Restraint is the default.

Elevation

--shadow-sm0 1px 2px / 0 1px 1px
--shadow-md0 2px 6px / 0 4px 12px
--shadow-lg0 4px 12px / 0 12px 32px
--shadow-xl0 8px 24px / 0 24px 64px

State transitions

For hover, focus, and active state changes only — never entrances. Hover any box to see the timing.

120ms
180ms
280ms
  • --transition-fast (120ms): colour swaps, focus rings
  • --transition-base (180ms): background fills, borders
  • --transition-slow (280ms): elevation, scale

Entrance

The single allowed entrance pattern: opacity 0 → 1, translateY(16px) → 0, 500ms ease-out, with 60ms stagger between siblings. Animates once on mount; refresh to replay.

Not used

  • Bounce — jarring on dense documentation layouts.
  • Spring — physics is unpredictable across viewports.
  • Shimmer — visual noise; conveys nothing real.
  • Parallax — provokes motion sickness for some readers.
  • Animated backgrounds — wastes battery and pulls focus from content.