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.jsonGlass level 1
Quiet depth.
A soft highlight follows your pointer across the surface.
GlassCardGlassCardTitleGlassCardFooterGlassCardHeaderGlassCardContent- +4 more
- +1 more
Card with header, content and footer
Team plan
Everything your team needs to ship.
$29/mo
import { Button } from "@/components/sheenui/button/button";
import { GlassCard, GlassCardContent, GlassCardDescription, GlassCardFooter, GlassCardHeader, GlassCardTitle } from "@/components/sheenui/glass-card/glass-card";
// Package build (after the first npm release, or a packed tarball): import { Button, GlassCard, GlassCardContent, GlassCardDescription, GlassCardFooter, GlassCardHeader, GlassCardTitle } from "@sheenui/theme";
// This example also uses button: npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/button.json
export function Example() {
return (
<GlassCard className="w-full max-w-sm">
<GlassCardHeader>
<GlassCardTitle>Team plan</GlassCardTitle>
<GlassCardDescription>Everything your team needs to ship.</GlassCardDescription>
</GlassCardHeader>
<GlassCardContent>
<p className="text-4xl font-semibold">$29<span className="text-sm">/mo</span></p>
</GlassCardContent>
<GlassCardFooter>
<Button fullWidth>Upgrade</Button>
</GlassCardFooter>
</GlassCard>
);
}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.tslib/{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
import { GlassCard } from "@/components/sheenui/glass-card/glass-card";
// Package build (after the first npm release, or a packed tarball): import { GlassCard } from "@sheenui/theme";
export function Example() {
return (
<>
<GlassCard level={1} className="p-5">Level 1</GlassCard>
<GlassCard level={2} interactive className="p-5">Level 2 · interactive</GlassCard>
<GlassCard level={3} tint className="p-5">Level 3 · tint</GlassCard>
</>
);
}Props
GlassCardTitle props
Keyboard
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
Related pages
Guides that cover it
- Glassmorphism in React: A Step-by-Step Tutorial
- Apple Liquid Glass in CSS and React
- Accessible Glassmorphism
- Glassmorphism vs Liquid Glass vs Neumorphism
- backdrop-filter Performance: Fast Glassmorphism
- Best Glassmorphism React Libraries (2026)
- shadcn Alternatives with Animation: Nine Libraries Compared (2026)
- shadcn Glassmorphism: Three Ways to Get a Glass UI
- Glassmorphism UI Prompts for AI Coding Agents
67 components pages in all: browse them on All components.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .