Glassmorphism in web design
Glassmorphism is a UI style built from frosted-glass panels. Cards are semi-transparent, blur whatever sits behind them, and float over a bright, colourful background, with a thin light border catching the edge of each pane.
What is glassmorphism?
Glassmorphism is a UI style built from frosted-glass panels. Cards are semi-transparent, blur whatever sits behind them, and float over a bright, colourful background, with a thin light border catching the edge of each pane.
The name caught on in 2020, but frosted panels are older than that. Windows Vista's Aero glass and Apple's iOS 7 both blurred the content behind menus and sheets. Glassmorphism turns that effect into the whole look. It only works when there is something worth blurring, so the background matters as much as the cards, and keeping text readable on glass is the part most attempts get wrong.
How to spot it
- Translucent cards, roughly 10 to 20% white, that blur the background behind them
- A 1px light border and a faint top highlight on every pane
- A vivid background of large, soft colour blobs or gradients
- White text and white or translucent controls
- Large corner radii and soft, wide shadows
- Works well for
- Dashboards, music and media apps, landing page heroes and anything that sits over imagery or colour.
- Think twice for
- Text-heavy pages, forms with many fields, and plain white backgrounds, where the glass has nothing to blur.
The glassmorphism prompt
Paste it into Claude, Cursor, v0, Lovable, Bolt or any AI builder, in the project you already have open. It restyles what is there and keeps your content, features and SEO. There is nothing to fill in.
Restyle my project in the Glassmorphism style. Change how it looks, not what it does. If this project is still empty, treat this as the design direction for a new site and ask me what it is for before you start. The style in one line: Frosted, semi-transparent panels with a hairline light border, floating over soft blobs of saturated colour on a deep background. LOOK AND FEEL A deep, saturated backdrop with panes of frosted glass floating above it. Depth comes from blur and translucency, not from heavy shadows. It should feel light, premium and slightly futuristic, never murky. COLOUR - Background: deep indigo #160D33, with four large, soft radial blobs on top of it: pink #FF5CA8, blue #4F7BFF, violet #8B5CFF and amber #FFB547, each fading to transparent across about a third of the screen. - Glass panels: white at 12% opacity (rgba(255,255,255,0.12)), with a 1px border of white at 32%. - Text is white. Secondary text is white at 85%, never lower, so it stays readable on the glass. - Primary buttons are solid white with dark indigo text (#23124D). Secondary buttons are glass: white at 18% with a white border at 40%. TYPOGRAPHY - A clean sans-serif such as Inter or Geist: weight 600 to 650 for headings and numbers, 400 to 500 for body. - Headings tight, with letter-spacing of about -0.03em. Body 15 to 16px with 1.5 line-height. - Keep text crisp: never put text on a blurred panel that sits over a busy, high-contrast part of the background without enough panel opacity behind it. SURFACES - Every card: backdrop-filter: blur(24px) saturate(160%), with the -webkit- prefix for Safari. - Corner radius 20 to 24px on cards and fully rounded (pill) on buttons and chips. - Shadow: one soft, wide shadow (0 20px 50px rgba(10,5,30,0.35)) plus an inset 1px top highlight of white at 35%. - Provide a fallback for browsers without backdrop-filter: raise the panel opacity to about 70% of the background colour. COMPONENTS - Navigation: a floating glass bar, pill-shaped, inset from the edges of the page. - Charts and progress bars: white bars that fade from 95% to 35% opacity from top to bottom. - Toggles: a glass track with a solid white knob; the on state brightens the track to white at 50%. - Chips and badges: white at 22% with white text. MOTION - Panels fade in and rise 12px on load, staggered by 60ms. - The background blobs may drift very slowly (20 to 30 seconds per loop). Stop the drift when the visitor prefers reduced motion. - Hover states raise a card's opacity slightly; nothing bounces. AVOID - Stacking glass on glass more than two layers deep. - Grey or white page backgrounds: without colour behind it, glass looks like a dirty window. - Light text at low opacity. If contrast falls below 4.5:1, make the panel more opaque rather than the text bolder. GROUND RULES - Keep my copy, logo and images as they are, and use tasteful placeholders only where something is missing. - Do not break anything. Every page, link, form, integration and feature must keep working exactly as it does now. - Leave my SEO alone: page titles, meta tags, heading structure, URLs and structured data stay as they are. - Put the colours, radii and shadows into CSS variables or theme tokens first, then use only those tokens. - Make it fully responsive, with a mobile layout that is as considered as the desktop one. - Keep it accessible: semantic HTML, visible focus states, and body text contrast of at least 4.5:1, even where the style tempts you to go fainter. - Work through it one section at a time and tell me what you changed.