Glass UI · live demo
Glassmorphism components
Rendered straight from the themesberg/glass-ui component sources (shadcn/ui + Tailwind CSS v4). Every surface below uses an actual backdrop-blur layer over the background.
Glass Card
Frosted panel, 1px light border, soft 32px drop shadow.
backdrop-blur-xl
Glass Button
Primary action on a blurred surface, still readable.
Glass Input
Translucent field so the background keeps showing through.
Glass Navbar
Sticky header that blurs the page as it scrolls.
AcmeDocsPricingLogin
Buttons
Default, secondary, outline, ghost and destructive variants.
Form controls
Translucent inputs with visible focus rings.
Depth stack
Layer 1
blur-xl · 10% white
Layer 2
stacks cleanly, no muddy colour
Layer 3
still legible at the deepest layer
Usage
<div className="bg-white/10 backdrop-blur-xl border border-white/20
shadow-[0_8px_32px_0_rgba(0,0,0,0.37)] rounded-xl p-6">
Glass panel
</div>