Duration and easing tokens

Sixteen durations and six curves, and no component needs any other number. The ladder is Material 3’s, because a published scale that four hundred million phones already move to is worth more than a scale we invented. Every duration is multiplied by --m-ok, so reduced motion collapses all sixteen at once.

The six curves, on the same 300ms move

300ms

The sixteen durations, on the same standard curve

Pick by distance, not by importance

What you paste. Nothing else is needed

:root{
  --m-ok:1;                                  /* 0 under reduced motion */
  --m-ease-standard:cubic-bezier(.2, 0, 0, 1);
  --m-ease-decelerate:cubic-bezier(0, 0, 0, 1);
  --m-ease-accelerate:cubic-bezier(.3, 0, 1, 1);
  --m-raw-short4:200ms;
  --m-dur-short4:calc(var(--m-raw-short4) * var(--m-ok) + 0.01ms);
  /* ... sixteen of these, short1 to xlong4 ... */
}
@media (prefers-reduced-motion:reduce){ :root{ --m-ok:0 } }

.card{ transition: box-shadow var(--m-dur-short4) var(--m-ease-standard) }

Two levels on purpose. --m-raw-* holds the number; --m-dur-* holds the number times the switch. Read --m-dur-* everywhere and --m-raw-* never, and reduced motion costs one line forever.