Apple's Liquid Glass,
ported to the web.
Liquid UI recreates the iOS 26 / macOS Tahoe material the right way — real-time refraction through an SVG displacement lens, specular rims, chromatic edge dispersion and fluid spring motion. A tiny, dependency-free library you use like Material UI.
Installation
2 files · no buildLink the stylesheet and script. The script auto-initializes every component and
attaches the refraction lens to each .lq-refract surface. Call LiquidUI.refresh()
after injecting markup dynamically.
Segmented control
.lq-segmentedA glass thumb glides cleanly between options and emits a lq:change event.
Switches
.lq-switchThe iOS toggle: the thumb stretches on press and settles with a spring.
Checkbox & Radio
.lq-check · .lq-radioGlass fills that tint to the accent colour with a spring-scaled mark.
Slider
.lq-sliderNative range input with an accent-filled track and a glass thumb that grows when grabbed.
Text fields
.lq-fieldGlass input wells; the accent ring blooms on focus. Add --search for a capsule search bar.
Grouped list
.lq-listThe iOS inset settings list — one glass slab with hairline separators.
Chips & badges
.lq-chip · .lq-badgeProgress & spinner
.lq-progress · .lq-spinnerTab bar
.lq-tabbarThe floating glass tab bar — the centrepiece of Liquid Glass navigation.
Sheet & toast
.lq-modal · LiquidUI.toast()A heavily-refracted glass sheet that springs in over a dimmed backdrop, plus glass toasts.
Cards
.lq-cardLiquid Dreams
Glasswaves · 3:24