Glassmorphism Generator
Design frosted-glass UI effects and export CSS, SCSS, Tailwind, or React code instantly
Background Scene
Controls
Quick Presets
Live Preview
Glassmorphism Card
Experience the frosted glass effect. Adjust blur, opacity, saturation, and more to create your perfect glass card.
Generated Code
/* Glassmorphism Card — generated by OmniWebKit */
.glass-card {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.12);
padding: 32px;
}CSS Property Quick Reference
backdrop-filter: blur()The core glassmorphism property. 8–24px is the sweet spot for most designs.
backdrop-filter: saturate()Increases colour vibrancy visible through the glass. 150–200% gives a vivid look.
background: rgba()Controls the glass tint colour and opacity. 10–25% opacity usually looks best.
Free Glassmorphism CSS Generator — Create Frosted Glass UI Effects Online
Glassmorphism is one of the most popular UI design trends of the past few years. It creates a frosted glass appearance using CSS backdrop filters, translucent backgrounds, and subtle borders. The result is a layered, depth-rich interface that feels modern, elegant, and visually striking — especially when placed over colourful gradients or vibrant photography.
The OmniWebKit Glassmorphism Generator lets you design and preview frosted glass cards in real time, then export the code in four formats: plain CSS, SCSS with variables, Tailwind CSS utility classes, and React inline styles. Every control — blur intensity, glass opacity, saturation boost, border width, border opacity, border radius, card padding, shadow position, shadow blur, and shadow opacity — updates the live preview instantly.
Choose from nine background presets (mesh gradient, aurora, sunset, ocean, midnight, neon, forest, cosmic, vibrant) or enter your own custom colour. Apply one of six named presets (Modern, Minimal, Bold, Subtle, Vivid, Elegant) for a fast starting point, then fine-tune to your exact taste.
What Makes Glassmorphism Work — The CSS Behind the Effect
The glassmorphism effect is built from four CSS properties working together. Understanding what each property does helps you create better-looking glass cards and troubleshoot issues when the effect doesn't look right.
backdrop-filter: blur()This is the single most important property for the glassmorphism effect. It blurs everything behind the element, creating the frosted glass look. The blur value is measured in pixels. Values between 8px and 24px work best — too low and the glass looks transparent rather than frosted; too high and nothing behind the card is recognisable. Note: without a vibrant background behind the card, this property has very little visible effect.
backdrop-filter: saturate()Applied alongside blur, saturate() boosts the colour vibrancy of everything visible through the glass. This gives the frosted glass a vivid, glowing quality that plain blurring doesn't achieve on its own. Values between 150% and 200% are typical. Setting it to 100% means no change; values above 200% can make the glass look very intense.
background: rgba()This controls the glass panel's tint colour and opacity. Using rgba() allows you to set how visible (opaque) the glass is. A white glass with 10–20% opacity is the classic glassmorphism look. You can use any colour — blue glass, pink glass, or even a very dark tint for a smoked glass effect — by changing the RGB values. Keep opacity low; high values make the card look like a solid-colour box rather than glass.
border: rgba(255, 255, 255, 0.x)A thin, semi-transparent white border catches light and defines the edge of the glass card, making it feel solid rather than floating. A 1px border at 20–30% opacity is the standard. Increasing the width to 2px or the opacity to 50% creates a more defined, modern look. A border with 0% opacity removes the edge highlight entirely.
box-shadowThe shadow grounds the glass card and creates the sense of depth and elevation. The glassmorphism convention is to use a soft, spread-out shadow (large blur value, low opacity) rather than a crisp, dark shadow. A shadow with 0 X offset, +24px Y offset, and 48px blur at 12% opacity creates a natural floating look. The Y offset controls the perceived height of the card above the background.
Browser Support and the -webkit- Prefix
The backdrop-filter property has broad support in modern browsers, but requires the -webkit-backdrop-filter prefix for Safari. This tool always outputs both versions so your glass cards work correctly in all major browsers.
| Browser | Support | Notes |
|---|---|---|
| Chrome 76+ | ✅ Full | backdrop-filter supported natively |
| Firefox 103+ | ✅ Full | Enabled by default since v103 |
| Safari 9+ | ✅ With prefix | -webkit-backdrop-filter required |
| Edge 79+ | ✅ Full | Based on Chromium, full support |
| IE 11 | ❌ No support | backdrop-filter not supported — use fallback |
