AppLiquidGlass

A pane of real glass, built the way Apple describes the material: two backdrop layers, a rim that bends what is behind it with chromatic dispersion, the lit edge iOS 26.1 draws, and both the Regular and Clear variants. The lens is ported from glisse by Kelvin Zhang (github.com/0kzh/glisse, MIT). It bends the live backdrop in Chromium and a marked backdrop element in every browser.

Install: pnpm add-component AppLiquidGlass

Live pane

A glass pane over a patterned backdrop, with every parameter of the refraction exposed. The grid lines are there on purpose — a bend is obvious in a straight line and invisible in a gradient. Drag thickness to 0 and the glass goes flat; switch to concave and the lens inverts.

How it works — five layers

No shader runs. The pane is a stack: a dimming layer (Clear only), a layer that frosts and saturates, a second layer that bends that result, the tone fill, and the painted rim. The lens is glisse’s: within a band round the rim each point shows content from further in, by the slope of a shallow dome, and the bend fades out toward the middle.

Using the engine directly

The composable is the whole component minus the markup. Use it when the glass has to live inside something that already owns its own DOM. It keeps the lens filter in one hidden <defs> for the page, and hands back what to put on your element.

On a button

The pane is a wrapper, so an existing component can opt into it without being rewritten. AppButton takes a glass prop that wraps itself in one and drops its own fill — see the AppButton page for the full set.

Every browser, with a marked backdrop

Only Chromium applies an SVG filter to a live backdrop; Firefox and Safari parse it and ignore it. So, as glisse does, mark the content behind the glass with data-glass-backdrop: the pane then filters that element itself, with its lens placed where the pane stands, every frame, and it bends in every browser. Keep marked content reasonably small where a lens moves over it, since Safari redraws the filter on the CPU. Over anything unmarked, those browsers keep the frost, the tint, the painted rim and the shadow. Reduce Transparency makes the glass frostier rather than removing it, and Increase Contrast trades the rim for a hard two-pixel border.

Taking a colour

tone is how a host component hands the pane its identity. One colour sets the fill, the lit rim and the glow together, so the glass reads as coloured from the edge in rather than as white glass with a wash laid over it. It accepts a var() with a fallback, which is how AppButton passes a theme token straight through.

API