Skip to content

Motion tokens

Durations, easings, springs (snappy, smooth, morph), staggers and blur radii for motion/react. The same values back foundation's --duration-* and --ease-* CSS variables. From Arc's free arc-motion-tokens (MIT).

The one clock for motion/react. Reach for spring.snappy on presses and toggles, spring.smooth on panels and height changes, spring.morph on shared highlights and widths that follow their content; ease.enter brings something in, ease.exit takes it out faster, ease.inOut moves what is already on screen. foundation carries the same durations and curves as --duration-* and --ease-* for CSS transitions. Animate with m from motion/react-m under @khaeli/motion-provider, which drops movement for readers who ask for reduced motion; branch on useReducedMotion for blur and for anything you move yourself.

Durations and eases

Springs

  • responsive
  • gentle
  • snappy
  • smooth
  • morph

Stagger and blur

  • Write the migration guide
  • Add shortcuts to the editor
  • Fix the export time zone
  • Review the pricing page copy
  • Confirm the launch date

Installation

npx shadcn@latest add @khaeli/motion-tokens

Installs with

Nothing else. This item needs no other Registry item and no npm package.

Registry JSON

The item as the shadcn CLI reads it, with every file it ships: https://ui.khaeli.com/r/motion-tokens.json