Skip to main content
Home pageTokensMotion & Layout

Motion & Layout

Tokens for transitions, stacking layers, and depth.

Duration​

Transition duration scale — four steps from micro-feedback to large panel animations.

/* Fade-in on hover */
.card {
opacity: 0.8;
transition: opacity var(--lt-duration-fast) var(--lt-ease-standard);
}
.card:hover {
opacity: 1;
}

/* Smooth collapse */
.panel {
transition: height var(--lt-duration-moderate) var(--lt-ease-standard);
}

Easing​

Two easing curves that cover all interactive motion.

The standard curve is the safe default for any transition. Use emphasized sparingly — it overshoots slightly past the target before settling, which makes an entrance feel snappy but can look odd on simple color transitions.

Z-index​

Two stacking layers. Components that use the native top layer (<dialog>, Popover API) don't need a z-index token.

lt-dialog, lt-sidepanel, and lt-snackbar use the native <dialog> element or the Popover API, which renders on the browser's top layer — above everything regardless of stacking context. They don't need z-index tokens at all.

Elevation​

Six levels of box-shadow depth, from flat to maximum lift. Shadows are derived from the neutral-900 palette step, so they adapt when you override the neutral color.

/* Card with hover lift */
.card {
box-shadow: var(--lt-elevation-1);
transition: box-shadow var(--lt-duration-fast) var(--lt-ease-standard);
}
.card:hover {
box-shadow: var(--lt-elevation-3);
}

Shadow RGB​

A raw RGB-channel token for building custom shadows, scrims, or translucent borders that the canned elevation levels don't cover.

/* Custom directional shadow */
.sidebar {
box-shadow: 4px 0 12px rgb(var(--lt-shadow-rgb) / 0.15);
}

/* Modal backdrop scrim */
.backdrop {
background: rgb(var(--lt-shadow-rgb) / 0.4);
}

/* Tinted hairline border */
.divider {
border-bottom: 1px solid rgb(var(--lt-shadow-rgb) / 0.08);
}

The value is derived from the same neutral-900 step as the elevation tokens ("23 23 23" with the default palette). Always consume it as rgb(var(--lt-shadow-rgb) / <alpha>) — never hardcode rgb(0 0 0 / ...).