Skip to content

Glassmorphism Card

The glassmorphism card is SheenUI's basic frosted-glass surface for React: pick one of three blur levels, and a soft highlight follows the pointer.

npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/glass-card.json

Glass level 1

Quiet depth.

A soft highlight follows your pointer across the surface.

  • GlassCard
  • GlassCardTitle
  • GlassCardFooter
  • GlassCardHeader
  • GlassCardContent
  • +4 more
  • +1 more

Team plan

Everything your team needs to ship.

$29/mo

Files to copy

5 folders · 5 files · 4 packages
From theme/src/
  • components/glass-card/
  • hooks/{use-media-query.ts, use-preferences.ts}
  • motion/light-follower.ts
  • lib/{cn.ts, heading.ts}
  • styles/
shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/glass-card.jsonRegistry item: glass-card. The styles need the Tailwind v4 glass UI setup.
The examples also use
  • components/button/
  • components/spinner/
  • hooks/{use-latest.ts, use-magnetic.ts}
  • motion/{gate.ts, tokens.ts}
  • lib/{form.ts, state-light.tsx}
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/button.json
Packages
pnpm add @base-ui/react clsx motion tailwind-merge

Levels, tint and interactive

Interactive cards lift on hover; tinted cards carry a hint of the accent color.

Level 1
Level 2 · interactive
Level 3 · tint

Props

PropTypeDefaultDescription
level2 | 1 | 321 = subtle (chips), 2 = cards (default), 3 = most opaque (dialogs, bars).
sheenbooleantrueSoft highlight that follows the pointer (mouse and pen only).
tintbooleanfalseTints the surface with the accent for featured content.
interactivebooleanfalseLifts slightly on hover; use for clickable cards. Movement is off with reduced motion.

GlassCardTitle props

PropTypeDefaultDescription
headingLevelHeadingLevelOption3Heading level ("none" renders a paragraph with the same look).

Keyboard

KeysAction
TabNot focusable: a plain card is not interactive. Buttons and links inside it keep their own tab stops. For a clickable card give it role="link" or role="button" and a tabIndex.

Accessibility

  • Plain markup with no role, so reading order is the DOM order.
  • Glass levels keep text at 4.5:1 over any backdrop; reduced transparency makes the card opaque, and forced colors give it a real border.
  • The sheen is a soft highlight that follows a mouse or pen (never on touch). The hover lift is off with reduced motion.

When to use the glass card

  • Use GlassCard as a glassmorphism card for the tiles on a dashboard or pricing page, where grouped content sits on a gradient or photo background and the frosted surface keeps text readable.
  • Use the tint prop to mark a featured plan or highlighted stat, so one card among several reads as accent colored without writing custom styles.
  • Use interactive for a clickable card in a project grid, adding role, tabIndex and key handlers yourself, so it lifts on hover and shows a solid focus ring.
  • Skip it when you need the full refracting lens look, which LiquidGlass provides, or when a page has more than a handful of cards in view, since each is a backdrop-filter surface.
  • Pair it with Badge and Button in the footer, Avatar in the header, and Progress or NumberTicker in the content area for stat cards.

Frequently asked questions

67 components pages in all: browse them on All components.

By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .