CSS Glass Profile Card

A frosted glass profile card with a glowing avatar ring and translucent buttons over a colorful backdrop.

  • glassmorphism
  • profile
  • frosted
  • backdrop-filter
  • avatar
  • blur
HTML
<article class="glass-profile">
  <span class="glass-profile-avatar" aria-hidden="true">SK</span>
  <h3>Sora Kato</h3>
  <p>Motion designer</p>
  <div class="glass-profile-actions">
    <a href="#">Follow</a>
    <a href="#">Message</a>
  </div>
</article>
CSS
.glass-profile {
  width: 210px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(15, 23, 42, 0.2);
  color: #fff;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.glass-profile-avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.45);
  font-size: 18px;
  font-weight: 700;
}

.glass-profile h3 {
  margin: 0;
  font-size: 17px;
}

.glass-profile p {
  margin: 2px 0 14px;
  font-size: 13px;
  opacity: 0.85;
}

.glass-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.glass-profile-actions a {
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.glass-profile-actions a:first-child {
  background: #fff;
  color: #4338ca;
}

.glass-profile-actions a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.glass-profile-actions a:first-child:hover {
  background: #e0e7ff;
}

.glass-profile-actions a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

About this CSS Glass Profile Card

This CSS Glass Profile Card is 74 lines of pure CSS (1.5 KB) with no JavaScript and no dependencies. It uses transitions, box shadows, backdrop filters and CSS Grid. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #fff
  • #4338ca
  • #e0e7ff

How to use this glass profile card

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .glass-profile class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback