About the Glassmorphism Generator
Glass-style cards are popular in modern UI. Tune blur, transparency and border and copy CSS that works in current browsers.
Glassmorphism is a UI style where panels look like frosted glass: semi-transparent, slightly blurred and outlined with a faint light border, so colours behind them shine through softly. It appears in operating systems, dashboards and landing pages. The effect relies on the CSS backdrop-filter property, combined with transparency and borders in the right proportions.
This generator lets you adjust blur, transparency, saturation, border opacity and corner radius while watching a preview card over a colourful background. The copied CSS includes the -webkit-backdrop-filter prefix needed by Safari, so it works across current major browsers.
Saturation in the backdrop filter boosts the colours seen through the glass, giving the vivid look common in modern operating systems. Combined with a subtle white border, it helps the panel stand out from the background without heavy shadows.
How to use the Glassmorphism Generator
- 1Adjust blur, transparency and colour.
- 2Check the preview over the background.
- 3Copy the CSS.
Key features
- Blur, transparency and saturation controls.
- Border opacity and corner radius.
- Live preview over a colourful background.
- Safari prefix included.
- Copy-ready CSS.
Practical uses
- Hero cards over gradient or photo backgrounds.
- Navigation bars that float over content.
- Login panels and modals.
- Dashboard widgets.
- Pricing cards on a landing page with a gradient background.
Example
A blur of 12px with 20% white transparency and a 30% border gives a classic frosted card that softens the colours behind it while keeping text readable.
Tips and common mistakes
- Place glass panels over colourful or photographic backgrounds; plain backgrounds hide the effect.
- Increase transparency or add a darker tint when text is hard to read.
- Use the effect sparingly, as large blurred areas can slow down low-end phones.
Limitations
- Very old browsers without backdrop-filter show a plain translucent box.
- Readability depends on the background behind the panel, which changes on scroll.
Privacy
All settings stay in your browser.
Frequently asked questions
Does backdrop-filter work everywhere?
Yes in all current major browsers; Safari needs -webkit-backdrop-filter, which is included.
Why can’t I see the effect?
Glass needs something colourful behind it. On a plain background it looks like a faint box.
Is it accessible?
Check text contrast: use the Color Contrast Checker on the text and card colours.
Is glassmorphism good for accessibility?
It can be if contrast is sufficient. Check the text colour against the darkest and lightest parts of the background.
Why is the border semi-transparent?
A faint light border imitates the edge of real glass catching the light and separates the panel from busy backgrounds.
Can I use a dark glass effect?
Yes. Choose a dark colour with transparency to create a smoky glass look for dark themes.