iOS — Liquid Glass JS behaviour

Liquid Glass material

The iOS 26 material on its own: regular and clear variants over a live colour field, with a lit rim, refraction and a gleam that follows the pointer — so you can judge each on its own.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

The material itself: regular vs clear

Two recipes of Liquid Glass float over a live colour field: regular — 24px blur plus a 70% tint, legible on anything — and clear — barely-there 6px blur for big lively surfaces. Move the pointer across them: the interior gleam and the lit rim follow it, so you can judge each variant on its own.

Regular blur 24px · saturate 1.8 · tint 70%

The default material: buttons, toolbars, sheets — text stays readable over any colour beneath.

Legible
Clear blur 6px · saturate 1.4 · tint 20%

Nearly invisible: the colour field pours through. Reserve it for large, playful surfaces — not for body text.

Lively

Sweep the pointer over the panels — the rim catches the light’s direction.

Important props

Important props
Prop Type Default What it does
regular recipe 'blur 24 + tint' 24px blur + a 70% white tint + soft shadow; legible on anything.
clear recipe 'blur 6' Nearly transparent; only for large, lively surfaces.
rim highlight 'inset 1px' An inner lit rim that catches the light’s direction.

Snippet

<div class="ioglass" data-kind="regular" onpointermove="ioGleam(event)">
    <b>Regular</b>
</div>

<style>
.ioglass { display: grid; place-items: center; inline-size: 200px; aspect-ratio: 1.6;
           border-radius: 24px; background: #ffffffa6;
           backdrop-filter: blur(24px) saturate(1.8);
           box-shadow: 0 8px 32px #00000026, inset 0 0 0 .5px #ffffffcc; }
.ioglass[data-kind='clear'] { background: #ffffff33; backdrop-filter: blur(6px) saturate(1.4); }
</style>