Glassmorphism

Inspired by frosted glass, this style creates depth through transparency and blur effects. Perfect for layered interfaces where content hierarchy is important.

Palette & CSS ↓

Live demo

Total Balance

$847,293.42

24h Change

+$12,847.32

Percentage

+1.54%

Quick Actions

Portfolio

₿

Bitcoin

BTC

$423,291

+2.4%

Ξ

Ethereum

ETH

$287,103

+1.8%

◎

Solana

SOL

$136,899

+5.2%

Recent Activity

Received

2 min ago

+0.5 ETH

Swapped

1 hour ago

BTC → USDC

Staked

3 hours ago

100 SOL

Sent

Yesterday

-0.1 BTC

About Glassmorphism

Inspired by frosted glass, this style creates depth through transparency and blur effects. Perfect for layered interfaces where content hierarchy is important.

Era / origin

2020s Modern

Key characteristics

  • Frosted glass
  • Transparent
  • Blurred background
  • Layered
  • Vibrant

When to use Glassmorphism

  • Modern SaaS
  • Financial dashboards
  • High-end corporate
  • Modal overlays

When to avoid it

  • Low-contrast backgrounds
  • Critical accessibility
  • Performance-limited

Common industries

  • SaaS
  • Fintech & Banking
  • Corporate & B2B
  • Real Estate
  • Luxury & Premium

Glassmorphism color palette

  • rgba(255,255,255,0.15)
  • #0080FF
  • #8B00FF
  • #FF1493
  • #20B2AA

How to build Glassmorphism in CSS

Effects: Backdrop blur (10-20px), subtle 1px rgba(255,255,255,0.2) border, soft heavily blurred colour blobs behind the glass

CSS · 89 lines
:root {
  --glass-fill: rgba(255,255,255,0.15);
  --glass-blue: #0080FF;
  --glass-violet: #8B00FF;
  --glass-pink: #FF1493;
  --glass-teal: #20B2AA;
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Glass needs something colourful behind it to blur. Keep the gradient bright;
   never lay a dark tint over the glass or darken the background. */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--glass-blue) 0%, var(--glass-violet) 50%, var(--glass-pink) 100%);
  color: #FFFFFF;
  font-family: system-ui, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Soft light blooms behind the panels: large, heavily blurred, fixed */
.blob {
  position: fixed;
  z-index: -1;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glass-teal);
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

.card {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card p {
  color: #FFFFFF;
}

.button {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-weight: 600;
  transition: transform 150ms ease, background-color 150ms ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.badge--positive {
  color: #86EFAC;
  font-weight: 600;
}

@media (prefers-reduced-transparency: reduce) {
  .card,
  .button {
    background: rgba(30, 20, 60, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

Use Glassmorphism with an AI coding agent

Paste this into Claude Code, Cursor, v0, Lovable or any coding agent to restyle a page in Glassmorphism.

AI prompt · 105 lines
Apply the Glassmorphism style to this interface.

What it is: Inspired by frosted glass, this style creates depth through transparency and blur effects. Perfect for layered interfaces where content hierarchy is important.
Look and feel: Frosted glass, Transparent, Blurred background, Layered, Vibrant.
Colors: primary rgba(255,255,255,0.15), #0080FF, #8B00FF; secondary #FF1493, #20B2AA.
Effects and motion: Backdrop blur (10-20px), subtle 1px rgba(255,255,255,0.2) border, soft heavily blurred colour blobs behind the glass.

Reference CSS (put these class names on the matching elements, or map them onto existing components and class names; avoid long structural selectors):
```css
:root {
  --glass-fill: rgba(255,255,255,0.15);
  --glass-blue: #0080FF;
  --glass-violet: #8B00FF;
  --glass-pink: #FF1493;
  --glass-teal: #20B2AA;
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Glass needs something colourful behind it to blur. Keep the gradient bright;
   never lay a dark tint over the glass or darken the background. */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--glass-blue) 0%, var(--glass-violet) 50%, var(--glass-pink) 100%);
  color: #FFFFFF;
  font-family: system-ui, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Soft light blooms behind the panels: large, heavily blurred, fixed */
.blob {
  position: fixed;
  z-index: -1;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glass-teal);
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

.card {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card p {
  color: #FFFFFF;
}

.button {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-weight: 600;
  transition: transform 150ms ease, background-color 150ms ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.badge--positive {
  color: #86EFAC;
  font-weight: 600;
}

@media (prefers-reduced-transparency: reduce) {
  .card,
  .button {
    background: rgba(30, 20, 60, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
```

Works best for: Modern SaaS, Financial dashboards, High-end corporate, Modal overlays.
Avoid it for: Low-contrast backgrounds, Critical accessibility, Performance-limited. If this product falls into one of those, say so before restyling.

Change the visual design only: keep the existing layout, content and behaviour.
Keep visible focus states, give icon-only controls an accessible name (aria-label) and respect prefers-reduced-motion.

Rolling AI coding agents out across a team? Farad Labs runs hands-on AI training.