Glassmorphism — the frosted, translucent panel look popularized in modern UI design — comes from a small set of CSS properties working together: a semi-transparent background, a blur applied to whatever sits behind it, a subtle light border, and a soft shadow. Getting the combination right by hand means a lot of trial and error with rgba values; a generator turns it into five sliders.
The Five Controls
- Blur — how much the background behind the panel gets blurred (0-40px)
- Tint color and opacity — the panel's own semi-transparent color wash (0-100%)
- Border radius — how rounded the panel's corners are (0-48px)
- Border opacity — a subtle light border that helps the glass edge read clearly
- Shadow — a soft drop shadow that lifts the panel off the background
The Generated CSS
At default settings (12px blur, 20% white tint, 16px radius, 30% border opacity, 37% shadow):
background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
Six lines, ready to paste directly onto any element that needs the effect — no manual rgba math required.
Adjust the sliders, copy the CSS
Try the Glassmorphism Generator