1 minute read · design
Glassmorphism creates depth and hierarchy through frosted glass effects.
The Core Recipe
.glass-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 1rem;
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
}Coloured Glow Underneath
.card-glow::before {
content: '';
position: absolute;
inset: -1px;
border-radius: inherit;
background: linear-gradient(135deg, #8B5CF6, #EC4899);
z-index: -1;
opacity: 0;
transition: opacity 0.3s;
}
.card-glow:hover::before { opacity: 1; }Performance
Use backdrop-filter sparingly. Limit blurred elements on a single page to five or fewer.
Conclusion
Glassmorphism is most effective on dark backgrounds with coloured content behind the glass.