Glassmorphism CSS Generator
About this tool
About Glassmorphism Generator
Glassmorphism is the frosted-glass look used in modern operating systems and dashboards: a translucent panel that blurs whatever sits behind it, edged with a faint light border. The effect depends on four things working together, and this generator puts each on a slider: the tint colour and its opacity, the backdrop blur, a saturation boost that keeps the colours behind the glass vivid, and the border opacity, plus corner radius and an optional soft shadow. Presets give you Frosted, Clear, Heavy, Dark and Tinted glass to start from. Switch the preview backdrop between gradients and stripes, because glass only reads as glass when there is something interesting behind it. The CSS includes the -webkit- prefix Safari still needs, and the Tailwind tab gives the matching backdrop-blur and backdrop-saturate classes. All of it is generated in your browser. Pick from 22 glass templates for cards, navbars, docks, widgets, login panels and modals, each shown on a backdrop that suits it.
Built and maintained by Abhi JainUpdated
How to Make a Glassmorphism Effect
- 1
Start from a preset
Choose Frosted, Clear, Heavy, Dark or Tinted.
- 2
Tune the glass
Adjust the tint, tint opacity, blur, saturation, border opacity and corner radius.
- 3
Test the backdrop
Switch the preview backdrop to see how the glass looks over different content.
- 4
Copy the code
Copy the CSS or the Tailwind classes.
Glassmorphism Generator: questions and answers
How does glassmorphism work in CSS?
A semi-transparent background (for example rgba(255, 255, 255, 0.2)) is combined with backdrop-filter: blur(), which blurs the content behind the element. A thin light border and soft shadow complete the effect.
Does backdrop-filter work in all browsers?
It works in all current browsers. Safari needs the -webkit-backdrop-filter prefix, which the generated CSS includes. Firefox has supported it by default since version 103.
Why doesn't my glass card look blurred?
The blur only affects content behind the element. If the background behind it is a flat colour, there is nothing to blur. Place it over an image, gradient or shapes.
Is glassmorphism accessible?
It can be if the text keeps enough contrast. Increase the tint opacity for busy backgrounds and check text contrast with the Colour Contrast Checker.
Are there glassmorphism templates?
Yes, 22 of them, grouped by component: cards, navigation, widgets, forms and modals, tinted glass and minimal styles. Each sets the tint, opacity, blur, saturation, border and radius and switches the preview to a backdrop that shows the effect well.
Related Tools
- Neumorphism GeneratorSoft UI (neumorphic) CSS: flat, concave, convex and pressed shapes.
- CSS Gradient GeneratorLinear, radial and conic CSS gradients with a live preview.
- Mesh Gradient GeneratorSoft multi-colour mesh gradients with draggable points, as PNG or CSS.
- Box Shadow GeneratorLayered CSS box shadows with inset, presets and a live preview.