You want the interface to feel like glass, the way it does on an iPhone running iOS 26. You add a translucent panel and a backdrop blur, and the result reads as a grey rectangle. The surface does not bend what sits behind it, the rim has no light, and a card over a photo looks identical whether that photo is bright or dark. Glisse closes that gap with React components instead of a design brief.
What Glisse actually does
Glisse is a React component library where every control is made of the same material. Buttons, switches, sliders, segmented controls, tab bars, toolbars, sheets, menus and sidebars all render as Liquid Glass, and the material bends and frosts whatever is underneath them. You install one package and import a component the way you would import anything else.
The project is TypeScript, MIT licensed, and published as glisse on npm at version 1.0.2. It has no runtime dependencies of its own and asks for React 18 or newer as a peer. The repository opened on 23 October 2026, passed 1,698 stars in six weeks, and npm records about 93,500 downloads a month. The source lives at the Glisse repository.
Setup is two lines, and no provider or Tailwind plugin sits between them:
npm install glisseimport { Button, Switch } from "glisse"
Styles arrive with the components. Importing the package inserts its stylesheet once, first in the document head, so your own CSS wins any tie without a specificity fight. Under server rendering you can also import glisse/styles.css in the root layout, which gets the glass into the first paint before hydration.
Why glass needs something behind it
Glassmorphism on the web usually means backdrop-filter: blur() over a semi-transparent fill. That reads as glass until the page moves. The blur is uniform, so it ignores the shape of the light and the depth of the content behind it, and the surface never picks up an edge.
Liquid Glass does something different. It samples what sits behind a surface, bends it near the rim, and paints a thin line of light along the edge. That displacement is what gives the material its thickness. The catch is that the effect needs content worth bending. Over a flat white page it reads as a faint outline, because there is nothing behind it to distort.
Glisse makes that requirement explicit. Mark the element behind the glass with data-glisse-backdrop, and every browser bends it. Leave the marker off and only Chromium bends the live page, while Safari and Firefox show the frost and the lit rim without the bend. On a photo, a video, a map or scrolling content, the difference is the whole effect.
☞ Put glass over something worth looking at. A hero image, a gradient mesh, a chart mid-render. Glass over plain white is a border with extra steps.
How the refraction is calculated
The bend is not a blur with a filter bolted on. Glisse models it as light passing through a rounded bezel. A point inside the glass shows what sits further in along the way in from the rim, and the pull is strongest at the very edge. The band that bends is three tenths of the shorter side, capped at 36 pixels, and it reaches as far again into the surface as the band is wide.
Colour splits along that curve the way it does in a real lens. The default dispersion is 0.6, which means red bends about 12 percent further than blue. That fraction is the reason the edge of an iOS 26 control shows a faint colour fringe instead of a clean grey falloff.
Two rendering paths do the work. When the backdrop is an image, a video or a canvas, Glisse uploads it as a texture and draws the whole face with a WebGL shader, so the result is identical in every browser. When the backdrop is live DOM, the library draws a displacement map for the surface and filters the content under it, which bends only what the glass covers. Several surfaces over one piece of content share a single filter.
The live DOM path has a cost worth knowing before you animate it. Safari runs that filter on the CPU, at roughly 40 milliseconds a frame for content 1200 by 800 at 2x, so a moving lens over a large element is heavy there. A still one costs nothing after its first frame. Animating the glass itself, or layering it over a picture, keeps the work on the GPU.
Everything visual is tunable, and nothing needs a style override to change. The library exposes custom properties such as --lg-glass-bend for how far the rim reaches, --lg-glass-dispersion for the colour split, --lg-tint for a colour laid over the glass, and --lg-fill for the accent inside a control. The full component reference, with a live example and the code beside it, sits in the Glisse documentation.
What ships in the package
The set covers a full application shell rather than a demo grid. Nineteen shipped modules, and most of them are complete controls rather than primitives you finish yourself:
- → Form controls, with
Button,Input,SearchField,Checkbox,Switch,Slider,Stepper,Select,ComboboxandRadioGroup - → Navigation, with
TabBar,Toolbar,Sidebarand its twenty parts, plusSegmentedControl - → Overlays, with
Sheetand its snap points,Dialog,Modal,MenuandContextMenu - → Support pieces, with
Progress,SpinnerandScrollArea - → The raw material,
Glassitself, withregularandclearvariants and aninteractivemode that lights under the pointer
Sizing is not negotiable in a useful way. Controls come in three heights through size, at 28, 32 and 40 pixels, and the docs tell you not to override them. That rule is what keeps a mixed interface looking like one system instead of twelve contributors agreeing on nothing.
State follows the same pattern. There is no onChange anywhere. Controls use onValueChange, onCheckedChange and onOpenChange, and each one receives the new value rather than an event. Passing value without the matching handler is the mistake the docs warn about first.
Overlays handle their own stacking. Dialog, Sheet and Modal open as a native dialog element in the top layer, and the menu lists portal themselves. You never give them a z-index, which removes the class of bug where a sheet disappears behind a sticky header.
There is also an agent skill, which matters if you build by prompting. npx skills add 0kzh/glisse installs a guide that teaches a coding assistant which component to reach for and which mistakes to avoid, including the ones in this article. The skill ships its own rules files, one of them on glass and the rest on composition, styling and accessibility.
Where it does not fit
Three limits belong near the top rather than in a footnote. The library is React only, so a Vue or Svelte project is out of scope. Every control is glass, which is the whole point and also the constraint, because a dense data table with forty rows of glass controls is not a good interface. And the effect depends on a backdrop, so an app that lives on a white canvas will look like it is wearing a costume.
There is a related trap in the composition rules. Glass takes its shape from border-radius, so a circle becomes a lens and a rounded rectangle becomes a rounded pane. Faking the shape with clip-path or a wrapper with overflow: hidden breaks the rim, and the light along the edge stops matching the corner.
Bundling is the last thing to measure. The unpacked package is about 907 KB, which includes the stylesheet, the shader source and every component. Your bundler keeps what you import, but a strict performance budget on a marketing page deserves a check before you ship a tab bar on top of it.
Frequently asked questions
Does it work with Next.js server components?
Yes. The bundle is marked "use client", so you can import components directly in a server component tree. To get the styles into the first paint before hydration, import glisse/styles.css once in the root layout.
Why does the glass look flat on my page?
Because nothing is behind it. Glass over a plain background has no light to bend. Put it over an image, a video, a map or scrolling content, and mark that element with data-glisse-backdrop so every browser applies the refraction.
Can I use my own brand colours?
Yes, through the --lg-* custom properties rather than by overriding component CSS. --lg-tint colours the glass itself, --lg-fill sets the accent inside a control, and the rest of the token set covers surfaces, edges and selection.
Is dark mode supported?
It follows the system by default. Force it with data-theme="light" or data-theme="dark" on any ancestor. The library handles reduced transparency and increased contrast, along with reduced motion, so adding your own media queries for those only duplicates the work.
Why it belongs in your stack
Rebuilding this by hand means writing a displacement shader, measuring a rim light off a screenshot, and then maintaining all of it across three engines that each handle SVG filters differently. Glisse has done that work and packaged it as components that behave like React components should.
It also pairs with what we already published. If the material itself is still unfamiliar, the practical guide to Liquid Glass covers the visual language, and the comparison with glassmorphism explains where a plain blur falls short. The notes on depth in iOS design cover why a floating card reads as closer than the screen behind it. Our own Liquid Glass library takes a different route with Base UI behaviour underneath, so the two are worth comparing before you pick one.
For the screens that need to hold up around those controls, the other free resources and design and code kits follow the same ship-it-yourself pattern.

