Skip to content

Skeleton

A shimmering placeholder while content loads.

A skeleton is one line tall by default. Set a width or height for other shapes, and .rounded for a pill or a circle. Hide it from screen readers with aria-hidden="true" and give the region a label that says it is loading.

The shimmer stops when the user prefers reduced motion.

Variables

VariableDefault
--i-skeleton-durationOne shimmer sweep1.5s
--i-skeleton-color-backgroundcolor-mix(in oklab, var(--i-color-text) 10%, var(--i-color-background))
--i-skeleton-color-highlightcolor-mix(in oklab, var(--i-color-text) 4%, var(--i-color-background))