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.

Checking refraction…

Installation

2 files · no build

Link 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.

Buttons

.lq-btn

Capsule glass buttons with a tinted accent variant, plain text style, three sizes and icon buttons. Each press answers with a soft spring scale.

Segmented control

.lq-segmented

A glass thumb glides cleanly between options and emits a lq:change event.

Switches

.lq-switch

The iOS toggle: the thumb stretches on press and settles with a spring.

Checkbox & Radio

.lq-check · .lq-radio

Glass fills that tint to the accent colour with a spring-scaled mark.

Slider

.lq-slider

Native range input with an accent-filled track and a glass thumb that grows when grabbed.

Text fields

.lq-field

Glass input wells; the accent ring blooms on focus. Add --search for a capsule search bar.

Grouped list

.lq-list

The iOS inset settings list — one glass slab with hairline separators.

Airplane Mode
Wi-Fi uptrix ›
Notifications 3

Chips & badges

.lq-chip · .lq-badge
● Online Design Engineering Inbox 12

Progress & spinner

.lq-progress · .lq-spinner

Tab bar

.lq-tabbar

The floating glass tab bar — the centrepiece of Liquid Glass navigation.

Cards

.lq-card
Now Playing

Liquid Dreams

Glasswaves · 3:24

Enable Liquid Glass?

This turns on real-time refraction and adaptive translucency across the interface.