{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "glass-card",
"type": "registry:ui",
"title": "Glass Card",
"description": "Glass-themed container with backdrop blur, glow effects, and hover animations.\n * Provides a foundational card component for glassmorphism UIs.\n *\n * ## Features",
"dependencies": [
"@radix-ui/react-slot",
"class-variance-authority",
"react",
"shadcn-glass-ui"
],
"registryDependencies": [
"cn",
"use-hover",
"variants"
],
"files": [
{
"path": "components/glass/ui/glass-card.tsx",
"type": "registry:component",
"content": "/**\n * GlassCard Component\n *\n * Glass-themed container with backdrop blur, glow effects, and hover animations.\n * Provides a foundational card component for glassmorphism UIs.\n *\n * ## Features\n * - Theme-aware styling (glass/light/aurora) via CSS variables\n * - Configurable blur intensity (subtle 8px, medium 16px, strong 24px)\n * - Optional glow effects (blue, violet, cyan)\n * - Hover animations with scale and glow effects\n * - Polymorphic rendering via `asChild` (Radix UI Slot pattern)\n * - Padding variants (none, compact, default, featured)\n * - Touch-friendly interactions (minimum 44x44px for interactive use)\n *\n * ## CSS Variables\n * Customize styling via theme CSS variables:\n * - `--card-subtle-bg`, `--card-medium-bg`, `--card-strong-bg` - Background colors\n * - `--card-subtle-border`, `--card-medium-border`, `--card-strong-border` - Border colors\n * - `--card-hover-bg`, `--card-hover-border`, `--card-hover-glow` - Hover states\n * - `--glow-blue`, `--glow-violet`, `--glow-cyan`, `--glow-neutral` - Glow effects\n * - `--blur-sm` (8px), `--blur-md` (16px), `--blur-lg` (24px) - Backdrop blur\n *\n * @example Basic card with medium intensity\n * ```tsx\n * import { GlassCard } from 'shadcn-glass-ui'\n *\n * function MyCard() {\n * return (\n * Card content goes here This card has a blue glow effect Hover over this card for effects $99.99Card Title
\n * Highlighted Card
\n * Interactive Card
\n *
\n * Product Name
\n *