The Glass Layer for your Design System
Composable shadcn/ui components whose edges refract the light behind them. Copy the code, keep your theme, and fall back to CSS glass anywhere.
Upcoming
May 2026
Scheduled
Savings plan
Accelerated
Recurring
Ask about glass, refraction or the registry.
Tune the optics
Adjust refraction, bezel and thickness, then apply them to every glass surface on this page.
Adjust the sliders to see how each physics parameter affects the refraction and displacement.
Four steps with the shadcn CLI
This site serves its own registry at liquidcn.dev/r. Point the CLI at it from any React project with Tailwind CSS v4.
Add the theme
Glass tokens and the .glass utilities go into your global CSS.
terminalnpx shadcn@latest add \ https://liquidcn.dev/r/theme.jsonAdd components
Plain shadcn/ui source on Base UI. You own the code after install.
terminalnpx shadcn@latest add \ https://liquidcn.dev/r/card.json \ https://liquidcn.dev/r/button.json \ https://liquidcn.dev/r/input.jsonMount the refraction filter
One SVG filter adds edge refraction to CSS glass in Chromium. Other browsers keep a frosted blur.
app/layout.tsxnpx shadcn@latest add \ https://liquidcn.dev/r/glass-filter.json // app/layout.tsx import { GlassFilter } from "@/components/ui/glass-filter" <body> <GlassFilter /> {children} </body>Optional: WebGL glass
Give the layer a canvas or video backdrop and mark the panes. Without WebGL2 they stay CSS glass.
page.tsxnpx shadcn@latest add \ https://liquidcn.dev/r/liquid-glass-layer.json // page.tsx import { LiquidGlassLayer } from "@/components/ui/liquid-glass-layer" import { setGlassLiveBackdropSource } from "@/lib/glass-live-backdrop" setGlassLiveBackdropSource(backgroundCanvas) <LiquidGlassLayer /> <Card data-liquid-glass>…</Card>