Toolstia / CSS glassmorphism generator
CSS glassmorphism generator
Design a frosted glass card with a live preview and copy the finished CSS. Adjust the blur, tint colour, opacity, saturation, border and corner radius until it looks right over a colourful background.
Glassmorphism is a see-through panel with a blurred background. It only shows once something colourful sits behind the card, which is why the preview uses a gradient. backdrop-filter works in all current browsers, and a solid fallback colour is wise for very old ones.
How it works
- Pick the tint colour and set the blur and opacity.
- Adjust the border, saturation and radius while watching the preview.
- Copy the CSS into your stylesheet.
How the effect works
A semi-transparent background colour sits on top of a blurred copy of whatever is behind the element. The blur comes from the backdrop-filter property.
Needs something behind it
Glass only looks like glass over images, gradients or colourful shapes. On a flat background the blur is invisible.
Browser support
backdrop-filter works in all current browsers. The generated code includes the -webkit- prefix for older Safari versions.
Readability
Keep text contrast high. A little more opacity or a darker tint makes text on glass much easier to read.
Questions
Does it slow down a page?
Heavy blur on large areas can be costly on weak devices, so use it on small cards and keep the blur moderate. Everything happens in your browser, and nothing you enter is sent anywhere.
Can I use a dark glass?
Yes. Enter a dark hex colour such as #000000 and a low opacity.
What if backdrop-filter is not supported?
The panel still shows its semi-transparent colour, just without the blur.