Krizaka UI
Krizaka UI
Design foundations

Motion

One motion system: easing, durations, the arrival of blocks and the rule that stills it all under reduced motion.

Krizaka moves little, and always the same way. Motion is a system of tokens and a few primitives, not a library: no component brings its own curve, no hover moves a card, and no pointer light follows the cursor. A figure moves because it shows something — traffic on a route, a total climbing, a step completing — never to decorate.

The Krizaka Lab plays every primitive on this page with live knobs, the code that follows them and the install line.

The tokens

TokenUse
--kz-ease (ease-kz)The default curve of every transition (200 ms).
ease-springA springier curve, for the few things that should land rather than glide.
--kz-duration-fastMicro-interactions: a press, a focus ring. 0 under reduced motion.

@krizaka/tailwind makes every transition* utility default to 200 ms on --kz-ease.

One vocabulary

Every animated primitive takes the same optional props, so what you learn on one carries to the next. A primitive offers the ones that make sense for it:

PropValuesMeaning
speednumberHow fast a loop runs (photons in EngineFlow, in units a second).
durationmsThe length of a one-shot (a route drawing, a ticker's climb, a row arriving).
easinglinear, ease-in-out, any CSS easingThe timing function; defaults come from --kz-ease.
staggermsThe step between siblings; the platform's own is 70 ms (reveal(i)).
directionradial, top-to-bottom, left-to-right · in, out, bothLayout of a flow; which way things travel.
densitysparse, normal, denseHow many photons, pins or rows.
triggeralways, hover, active, view, changeWhen it plays.
reducedMotionstill (default)What a visitor who asks for less gets: the composed resting frame, never a blank.
huea brand scope (brand-sovkora)Colour comes from the tokens, in both themes.
pausedbooleanA controlled pause, on top of the off-screen pause.

EngineFlow offers speed, density, trigger, easing, stagger, layout and breathe today; the rest arrive primitive by primitive, tracked in krizaka-lab#8.

The primitives that move

PrimitiveWhat movesReduced motion
EngineFlowPhotons travel the conduits of an engine and its apps; the engine breathes.Photons rest along their conduits.
Route, Pulse, Marker drop (@krizaka/ui/map)A route draws itself and a courier travels it; a heat pulse beats; pins drop in turn.Everything is in place at once.
NumberTickerA figure climbs into view or rolls digit by digit to a new value.The final figure.
TerminalReplayCommands are typed, output printed line by line.The whole session, at rest.
StepperThe current step is traced and grows to its value; each state is said in words.The states, without the trace.
Dialog, SheetThe panel enters from its edge.It appears.
NavBar, TabsOne indicator slides under the active item.It jumps.
data-kz-arriveA row, a cell or an item arrives once: slide, fade or flash (data-kz-arrival).Present, no animation.
.kz-growA Sparkline draws its stroke and raises its fill (--kz-grow-duration, --kz-grow-ease).Drawn.

What the conductor guarantees

Mount MotionObserver once. Every primitive that loops is a [data-motion-scope]: it gets data-offscreen while off screen and every animation inside it pauses; the page's loops hold their first frame until it has settled (html[data-motion="settling"]), so the first screen paints undisturbed. Motion is CSS (transform, opacity, translate, scale, an SVG stroke-dashoffset) or the Web Animations API; there is no permanent requestAnimationFrame and no canvas — a finite one-shot (a route drawing for 1.4 s) may use frames and stops when it is done. A primitive that needs more says why in its page.

Two rules keep it honest: an animated length always carries its unit (calc(var(--gap) * -1px), never * -1 — a unitless number cannot interpolate with a length and the animation silently freezes), and every animation is checked in a real browser with reduced motion off (it moves) and on (it rests).

Arrival

A block arrives once, as it scrolls into view: put data-reveal on it and stagger the siblings (70 ms apart). Never on the first screen of a page — that is what the visitor waits for, and what the performance budget measures. Figures climb with NumberTicker; loops (a mark's orbit) pause off screen.

Reduced motion

Under prefers-reduced-motion entrances stop, loops rest on a still frame, and durations go to zero — the layout, the words and the announcements stay. Every animated component of the platform is tested for it.

import { EngineFlow } from "@krizaka/ui/engine-flow";

<EngineFlow label="Sovkora and the products it powers" hub={{ label: "Sovkora" }} nodes={nodes} density="dense" trigger="hover" />

See also the brand marks, which are animated by the same rules.

On this page