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
variant('regular' | 'clear'): Apple ships two. Regular is 'the most versatile and common variant' — it frosts, so it stays legible over anything. Clear is permanently transparent and only appropriate when three things hold: the element sits over media-rich content, that content can take a dimming layer, and what sits on the glass is bold and bright. Clear brings a dimming layer with it, because without one legibility noticeably fails. A variant is a set of defaults, not a lock: any prop you pass still wins.concentric(boolean): Derive the radius from an enclosing AppGlassContainer instead of using the radius prop, so the two curves stay concentric — controls concentric to sheets, sheets to windows. Without a container it is ignored.dispersion(number): How much further red bends than blue, as a fraction of the bend: at 0.08, glisse's default, red bends 8% and green 4% further than blue, so the rim fringes as a real lens does. Past about 0.2 it stops reading as glass. Clamped to 0.4.dim(number): Darkens what is behind the glass, 0-1, painted under the frost so the blur samples it. Clear defaults to 0.18; regular to 0. This is the dimming layer Apple requires under Clear.rim / lightAngle(number): Width of the lit line in px and where the light comes from, as a CSS gradient angle. The rim is painted per shape from measurements of iOS 26.1: brightest at the very edge and gone a line-width in, lighting the sides that face the light and, weaker, the sides that reflect it, fading over the corners between. 0.3 of white over a light page, 0.13 over a dark one (--lg-rim-shine).radius(number): Corner radius in px, applied to the pane and baked into the refraction. Half the short side gives a circle — which is all a magnifier is.bezel(number | 'auto'): Width of the band round the rim that bends, in px. auto is a quarter of the short side, glisse's tuning. Inside the band each point shows content from further in; the bend fades out toward the middle, which barely moves.thickness(number): Glass depth, the strength dial. With the refractive index it sets how far in the rim reaches for what it shows: 22 at 1.5 reaches 0.45 of the short side, glisse's default. At 0 there is nothing to bend and the pane renders flat.refractiveIndex(number): Air is 1 (no bend), window glass about 1.5. The reach grows with how far it is above 1, so 2 bends twice as hard as 1.5.profile('convex' | 'squircle' | 'concave' | 'lip'): The dome the bend follows. squircle is glisse's glass, steep at the edge; convex is rounder, spreading the bend inward; concave inverts the lens and pushes the backdrop outward; lip pulls straight across near the sides, as glisse's switch thumb does.magnification(number): A radial zoom over the whole pane, on top of the rim. 1 leaves the middle alone. With a zoom, the rim is scaled down just enough that the picture never folds back on itself, so a full-radius bezel makes a clean magnifier.maxDisplacement(number): Ceiling on how far any point moves, in px. 0 leaves it to the lens, which never moves content more than half its reach.resolution(number): Map density in pixels per px. 0 follows the screen, up to 2. Maps are cached by shape and settings, so panes of the same size share one.source('auto' | 'backdrop' | 'content'): What bends. auto: the live backdrop in Chromium; elsewhere the element marked data-glass-backdrop behind the pane, which is filtered with the lens placed where the pane stands, every frame. content uses the marked element in Chromium too; backdrop never filters content.blur / fallbackBlur(number): blur rides alongside the refraction. fallbackBlur is used instead wherever the refraction cannot run, so the pane still reads as glass on browsers that will not run the filter.saturate / brightness(number): Applied to the backdrop with the refraction. Lifting both is what stops glass looking like grey film.tone(string): The colour the glass takes on. One value in, three out: the fill, the lit rim and the glow beneath are all mixed from it, so a component hands the pane its identity once instead of tuning three layers that can drift apart. Any CSS colour, including a var() with a fallback.toneStrength(number): How much of tone ends up in the fill, as a percentage. Around 8 reads as plain glass with a hint of colour; past about 25 it starts to look like paint rather than glass.tint(string): Overrides the derived fill outright, for when you want a wash that is not a mix of the tone. An empty string removes the layer entirely.specular(boolean): The lit rim, painted as iOS 26.1 draws it, with a faint inner glow so the pane reads as a thickness rather than a border. Increase Contrast swaps it for a hard border.shadow / interactive(boolean): A drop shadow under the pane, and a small lift on hover.disabled(boolean): Stops generating the map and leaves the fallback blur. Useful for a low-power or reduced-effects mode.as(string): Tag for the root element. Use span when the pane has to sit inside an inline flow, as AppButton does.