{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gradient-card",
  "title": "Gradient card",
  "author": "Hazeglow (https://hazeglow.dev)",
  "description": "A card with a live gradient header that takes its colors from your theme.",
  "dependencies": [
    "hazeglow@^0.6.1"
  ],
  "files": [
    {
      "path": "registry/hazeglow/gradient-card.tsx",
      "content": "\"use client\";\n\nimport { useState, type ReactNode } from \"react\";\nimport { Hazeglow, parseConfig } from \"hazeglow\";\nimport { cn } from \"@/lib/utils\";\n\nconst config = parseConfig({\n  shape: \"pill\",\n  seed: 3,\n  center: [0.5, 0.55],\n  size: [0.95, 0.75],\n  roundness: 0.7,\n  softness: 0.55,\n  rampDirection: 0.9,\n  angle: 90,\n  warp: 0.12,\n  warpScale: 1,\n  grain: 0.4,\n  motion: \"drift\",\n  speed: 0.8,\n  hover: 0.35,\n  palette: [\n    \"var(--hazeglow-1, #05070c)\",\n    \"var(--hazeglow-2, #1b2a3a)\",\n    \"var(--hazeglow-3, #5d7a8c)\",\n    \"var(--hazeglow-4, #c7d3d9)\",\n    \"var(--hazeglow-5, #f4efe3)\",\n  ],\n  background: \"var(--card, #0a0a0a)\",\n});\n\nconst fallback =\n  \"radial-gradient(70% 60% at 50% 35%, var(--hazeglow-4, #c7d3d9), transparent 70%), radial-gradient(70% 60% at 50% 85%, var(--hazeglow-3, #5d7a8c), transparent 70%)\";\n\nexport function GradientCard({\n  title = \"Grainy by default\",\n  description = \"A live gradient header that takes its colors from your theme.\",\n  children,\n  className,\n}: {\n  title?: ReactNode;\n  description?: ReactNode;\n  children?: ReactNode;\n  className?: string;\n}) {\n  const [unsupported, setUnsupported] = useState(false);\n\n  return (\n    <div className={cn(\"overflow-hidden rounded-xl border bg-card text-card-foreground\", className)}>\n      <div\n        aria-hidden=\"true\"\n        className=\"relative h-40 bg-muted\"\n        style={{ backgroundImage: unsupported ? fallback : undefined }}\n      >\n        {unsupported ? null : <Hazeglow config={config} onUnsupported={() => setUnsupported(true)} />}\n      </div>\n      <div className=\"p-6\">\n        <h3 className=\"leading-none font-semibold\">{title}</h3>\n        <p className=\"mt-2 text-sm text-muted-foreground\">{description}</p>\n        {children ? <div className=\"mt-4 flex flex-wrap gap-2\">{children}</div> : null}\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "cssVars": {
    "light": {
      "hazeglow-1": "#05070c",
      "hazeglow-2": "#1b2a3a",
      "hazeglow-3": "#5d7a8c",
      "hazeglow-4": "#c7d3d9",
      "hazeglow-5": "#f4efe3"
    },
    "dark": {
      "hazeglow-1": "#05070c",
      "hazeglow-2": "#1b2a3a",
      "hazeglow-3": "#5d7a8c",
      "hazeglow-4": "#c7d3d9",
      "hazeglow-5": "#f4efe3"
    }
  },
  "docs": "Usage: <GradientCard title=\"Grainy by default\" description=\"A live gradient header.\" />\nColors come from --hazeglow-1 to --hazeglow-5, which this item adds to your CSS for light and dark. They default to Paper moon from the hazeglow.dev gallery; edit them to match your brand, and the gradient fades into --background. Live WebGL2 canvases: keep a few per page, since browsers allow about 16. Design your own look at https://hazeglow.dev/generator and paste its config.",
  "categories": [
    "card",
    "gradient"
  ],
  "type": "registry:block"
}