Glassmorphism generator

Design a frosted-glass UI card with live sliders and copy the cross-browser CSS — all in your browser.

Glass properties
Colour & shadow

Glassmorphism UI

A translucent frosted-glass surface with adjustable blur, tint and soft shadow. Drag the sliders to shape it.

Live preview
Generated CSS
 

What this glassmorphism generator does

Glassmorphism is the frosted-glass look popularised by modern operating systems and dashboards: a translucent panel that blurs whatever sits behind it, edged with a faint highlight and lifted off the page by a soft shadow. This tool lets you dial in that effect with six sliders and two colour pickers, watch the card update in real time over a colourful background, and copy a clean, ready-to-paste CSS snippet.

The effect is built from four CSS channels working together. The blur comes from backdrop-filter, which blurs the pixels behind the element rather than the element itself. A semi-transparent background tints the glass. A faint border in white at low opacity simulates the bright edge of a real pane, stopping it from melting into the page. Finally a box-shadow separates the card from its canvas.

The four CSS ingredients

PropertyExample valueVisual role
backdrop-filter blur(12px) Diffuses the colours directly behind the card
background rgba(255,255,255,.25) Sets the glass tint and overall translucency
border 1px solid rgba(255,255,255,.3) Adds the bright reflective edge of real glass
box-shadow 0 10px 20px rgba(0,0,0,.1) Lifts the card off the background for depth

A worked example

Leave the defaults in place and the generator emits a 12-pixel blur, a 25% white tint, a 30% white 1-pixel border and a soft shadow. Paste that block onto a div positioned over a gradient or photo and you instantly get a credible glass panel. Push the blur toward 25px for a heavier frost, drop the background opacity for a clearer pane, or swap the card colour to a dark slate such as #0f172a when the design sits on a light page and you want a smoked-glass effect instead.

Privacy note: this generator runs entirely in your browser. The sliders, colour values and the CSS you copy are computed on your device — nothing is uploaded, logged or stored anywhere.

Frequently asked questions

What is the backdrop-filter property and why does it matter here?

backdrop-filter is the CSS property that creates the frosted-glass effect. Unlike filter, which blurs the element itself, backdrop-filter blurs only what is rendered directly behind the element. Without it you just get a flat semi-transparent panel — the blur is what sells the "glass" look, so a colourful or busy background underneath is essential.

Why do I need the -webkit-backdrop-filter line?

Safari (on both macOS and iOS) historically required the vendor-prefixed -webkit-backdrop-filter to apply the blur. This generator always outputs both the standard and the prefixed property so your glass cards render correctly across Chrome, Edge, Firefox and Safari without you having to remember the prefix.

Will the generated CSS work in every browser?

backdrop-filter is supported in all current major browsers, but it can be disabled in power-saving modes or unavailable on very old versions. Because the snippet also sets a semi-transparent background colour, the card degrades gracefully to a plain translucent panel if the blur is unavailable — nothing disappears.

Is anything I configure sent to a server?

No. Every slider, colour value and the CSS output are computed entirely in your browser with JavaScript. Nothing is uploaded, logged or stored. You can copy the snippet and close the tab, and no trace of your design leaves your device.

How do I keep text readable on a glass card?

Translucent cards inherit colour from whatever sits behind them, so contrast can shift as the background changes. Raise the background opacity a little, add a soft drop shadow for separation, and pick a text colour with strong contrast. For dark backgrounds, switch the card tint to a dark slate so light text stays legible.