{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "aurora",
  "type": "registry:component",
  "title": "Aurora",
  "description": "Soft aurora background of blurred gradient blobs drifting slowly. Pure CSS.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "overlay",
    "aurora",
    "gradient",
    "background",
    "blur",
    "glow"
  ],
  "docs": "https://hyperblur.dev/effects/aurora",
  "files": [
    {
      "path": "registry/hyperblur/aurora.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/aurora.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface AuroraProps extends React.HTMLAttributes<HTMLDivElement> {\n  colors?: string[];\n  speed?: number;\n  blur?: number;\n  opacity?: number;\n}\n\nconst css = `\n@keyframes hb-au-a {\n  0% { transform: translate3d(0, 0, 0) scale(1); }\n  33% { transform: translate3d(22%, 14%, 0) scale(1.18); }\n  66% { transform: translate3d(-12%, 26%, 0) scale(0.92); }\n  100% { transform: translate3d(0, 0, 0) scale(1); }\n}\n@keyframes hb-au-b {\n  0% { transform: translate3d(0, 0, 0) scale(1.05); }\n  40% { transform: translate3d(-24%, -16%, 0) scale(0.9); }\n  75% { transform: translate3d(14%, -22%, 0) scale(1.2); }\n  100% { transform: translate3d(0, 0, 0) scale(1.05); }\n}\n@keyframes hb-au-c {\n  0% { transform: translate3d(0, 0, 0) scale(0.95); }\n  30% { transform: translate3d(-18%, 20%, 0) scale(1.15); }\n  70% { transform: translate3d(20%, -10%, 0) scale(1); }\n  100% { transform: translate3d(0, 0, 0) scale(0.95); }\n}\n.hb-au { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: var(--hb-o); }\n.hb-au-blob {\n  position: absolute;\n  left: var(--hb-x);\n  top: var(--hb-y);\n  width: var(--hb-s);\n  height: var(--hb-s);\n  border-radius: 50%;\n  background: radial-gradient(circle at 50% 50%, var(--hb-c) 0, transparent 68%);\n  filter: blur(var(--hb-b));\n  will-change: transform;\n  animation: var(--hb-k) var(--hb-d) ease-in-out infinite;\n  animation-delay: var(--hb-dl);\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-au-blob { animation: none; will-change: auto; }\n}\n`;\n\nconst blobs = [\n  { x: -12, y: -28, s: 70, k: \"hb-au-a\", d: 26, dl: 0 },\n  { x: 44, y: -20, s: 62, k: \"hb-au-b\", d: 32, dl: -9 },\n  { x: 8, y: 34, s: 66, k: \"hb-au-c\", d: 29, dl: -15 },\n  { x: 52, y: 40, s: 58, k: \"hb-au-a\", d: 36, dl: -21 },\n];\n\nexport function Aurora({\n  colors = [\"#2f7bff\", \"#7fb3ff\", \"#19c3f5\"],\n  speed = 1,\n  blur = 80,\n  opacity = 0.55,\n  className = \"\",\n  style,\n  ...rest\n}: AuroraProps) {\n  const palette = colors.length > 0 ? colors : [\"#2f7bff\"];\n  const sp = Math.max(speed, 0.01);\n\n  const vars = {\n    \"--hb-o\": Math.min(1, Math.max(0, opacity)),\n    \"--hb-b\": `${Math.max(0, blur)}px`,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <div className={`hb-au ${className}`} style={vars} aria-hidden=\"true\" {...rest}>\n      <style href=\"hb-aurora\" precedence=\"default\">{css}</style>\n      {blobs.map((b, i) => (\n        <div\n          key={i}\n          className=\"hb-au-blob\"\n          style={\n            {\n              \"--hb-x\": `${b.x}%`,\n              \"--hb-y\": `${b.y}%`,\n              \"--hb-s\": `${b.s}%`,\n              \"--hb-c\": palette[i % palette.length],\n              \"--hb-k\": b.k,\n              \"--hb-d\": `${(b.d / sp).toFixed(3)}s`,\n              \"--hb-dl\": `${(b.dl / sp).toFixed(3)}s`,\n            } as React.CSSProperties\n          }\n        />\n      ))}\n    </div>\n  );\n}\n"
    }
  ]
}