Glassmorphism is a UI style that makes panels look like frosted glass: a translucent background that blurs what is behind it, a thin light edge and a soft shadow.
Glassmorphism is a visual style in which cards, sidebars and menus look like sheets of frosted glass floating over a colourful background. The name spread in 2020, the year macOS Big Sur brought translucent panels to the Mac; Windows calls its version Acrylic, and Apple’s 2025 Liquid Glass takes the idea further with light that bends at the edges.
The recipe has four parts: a semi-transparent fill, a background blur of what sits behind the panel (CSS backdrop-filter), a 1 px light border that catches the edge, and a soft shadow that lifts the panel off the page. It only works over something worth blurring, such as a photo, a gradient or moving content.
Watch two things. Text on glass has to pass contrast over the busiest part of the background, so add a darker or lighter tint behind it if needed. And backdrop-filter costs work on every frame, so keep blurred areas small, avoid animating the blur itself, and give browsers without support a solid fallback with @supports.
.glass {
background: rgb(255 255 255 / 0.12);
-webkit-backdrop-filter: blur(16px) saturate(1.4);
backdrop-filter: blur(16px) saturate(1.4);
border: 1px solid rgb(255 255 255 / 0.25);
border-radius: 16px;
box-shadow: 0 8px 32px rgb(0 0 0 / 0.25);
}
@supports not (backdrop-filter: blur(1px)) {
.glass { background: rgb(30 30 36 / 0.92); }
}