Liquid Glass UI: What It Is and the Prompt to Build It
Frosted, glowing "liquid glass" panels are everywhere in 2026. Learn the four CSS ingredients and how to prompt an AI tool to get them right.
"Liquid glass" is the frosted, softly glowing panel style you now see on navbars, cards and buttons across modern product sites. It looks complex, but it comes down to four CSS ingredients.
The 4 Ingredients
- A see-through fill: background rgba(255,255,255,0.06–0.12). - Backdrop blur: backdrop-filter: blur(20–28px) saturate(160%). This is what makes it look like glass. - A thin bright edge: a 1px border around 15–20% white. - An inner highlight: box-shadow: inset 0 1px 0 rgba(255,255,255,0.25) — the small line of light along the top edge.
The Background Matters Most
Glass over a flat colour looks like grey plastic. It needs something colourful and moving behind it: large blurred gradient blobs, a soft aurora, or a muted video. Ask for that explicitly.
How to Prompt It
Tell the AI to create a reusable .glass class with the four values above, then list where to use it: the floating navbar, stat chips, buttons and feature cards. Add "cards tilt slightly toward the cursor (max 6°)" if you want depth.
Common Mistakes
- Too much blur and too much white — text becomes hard to read. - Glass on glass on glass. Use it for a few key elements only. - Forgetting performance. Backdrop blur is expensive; avoid it on long scrolling lists.
Ready-Made Prompts
Liquid Glass Agency Landing is a complete two-section page built around this style. The free Liquid Glass Navbar prompt is a good place to start if you only need the navigation.
Want the shortcut instead of another blank project?
Browse developer-ready prompts, Next.js templates, and source code you can use immediately.
Browse Prompts and Templates →