Contents

Foundations

Motion

A small, provisional set of durations and curves, harvested from the sketch until motion gets designed properly.

Provisional

Motion design comes later (Motion is provisional, D-21). This is the minimal set the sketch already used, so components get basic state transitions and nothing more: three durations, two curves, an in-flight pulse and a one-time landing flash. Every token here is flagged provisional and may change.

Durations and curves

fast (150ms) is Tailwind’s default transition, so transition-colors already uses it with the standard curve (CSS ease). base (200ms) is for overlays and toasts entering and leaving, and slow (300ms) is for opacity fades. Reach a duration with the variable shorthand, for example duration-(--sb-motion-duration-base), and a curve with ease-standard or ease-in-out.

Animations

The in-flight pulse dims a status mark to 0.4 and back, forever. It always travels with words, so nothing depends on seeing it move.

buffering motion-safe:animate-pulse-inflight

The landing flash marks an item you just jumped to: it starts at primary-flash and fades to nothing, once.

Leo: wait, go back to the bit with the dog.

motion-safe:animate-flash motion-reduce:bg-primary-flash

Every animation honours prefers-reduced-motion. Animations sit behind motion-safe:, so with reduced motion on the pulse stops and the flash is replaced by a static motion-reduce:bg-primary-flash tint.

Tokens

motion tokens
TokenTailwindValueAbout
duration-fast --sb-motion-duration-fast provisionalCSS variable only150msHover and colour state transitions (the default transition), tooltip fade Derives from Motion is provisional
duration-base --sb-motion-duration-base provisionalCSS variable only200msOverlay and toast enter and exit Derives from Motion is provisional
duration-slow --sb-motion-duration-slow provisionalCSS variable only300msOpacity fades Derives from Motion is provisional
duration-pulse --sb-motion-duration-pulse provisionalCSS variable only1.1sOne cycle of the in-flight pulse Derives from Motion is provisional
duration-flash --sb-motion-duration-flash provisionalCSS variable only1.4sThe landing flash on a jumped-to item Derives from Motion is provisional
easing-standard --sb-motion-easing-standard provisionalease-standardcubic-bezier(0.25, 0.1, 0.25, 1)CSS ease: state transitions and the landing flash Derives from Motion is provisional
easing-in-out --sb-motion-easing-in-out provisionalease-in-outcubic-bezier(0.42, 0, 0.58, 1)CSS ease-in-out: the in-flight pulse Derives from Motion is provisional
animation-pulse-inflight --sb-motion-animation-pulse-inflight provisionalanimate-pulse-inflightsb-pulse 1.1s cubic-bezier(0.42, 0, 0.58, 1) 0ms infiniteIn-flight marks and the button loading mark: opacity dips to 0.4 at the midpoint, forever. Always behind motion-safe Derives from Motion is provisional
animation-flash --sb-motion-animation-flash provisionalanimate-flashsb-flash 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) 0ms 1Landing flash: fades from primary-flash to transparent, once. Under reduced motion use the static motion-reduce:bg-primary-flash tint Derives from Motion is provisional