{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "spotlight-card",
  "title": "Spotlight Card",
  "type": "registry:component",
  "description": "Cursor light that also lights the border under it",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/spotlight-card.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/spotlight-card.jsx",
      "content": "'use client'\n\nimport { motion, useMotionTemplate, useMotionValue } from 'motion/react'\n\n// A soft light follows the cursor across the card and lights up its border.\nexport default function SpotlightCard({ title = 'Zero-config SSL', body = 'Certificates issue and renew on their own. You never touch a cron job.', tag = 'Security' }) {\n  const x = useMotionValue(-200), y = useMotionValue(-200)\n  const bg = useMotionTemplate`radial-gradient(260px circle at ${x}px ${y}px, color-mix(in oklab, var(--acc) 14%, transparent), transparent 70%)`\n  const border = useMotionTemplate`radial-gradient(180px circle at ${x}px ${y}px, color-mix(in oklab, var(--acc) 90%, transparent), transparent 70%)`\n  const move = (e) => { const r = e.currentTarget.getBoundingClientRect(); x.set(e.clientX - r.left); y.set(e.clientY - r.top) }\n  return (\n    <div onPointerMove={move} onPointerLeave={() => { x.set(-200); y.set(-200) }} className=\"group relative w-[340px] max-w-full rounded-2xl p-px\">\n      <motion.div className=\"absolute inset-0 rounded-2xl\" style={{ background: border }} />\n      <div className=\"absolute inset-px rounded-[15px] bg-panel\" />\n      <motion.div className=\"absolute inset-px rounded-[15px]\" style={{ background: bg }} />\n      <div className=\"relative p-6\">\n        <span className=\"rounded-full border border-line2 px-2 py-0.5 text-[11px] text-mute\">{tag}</span>\n        <h3 className=\"mt-4 text-lg font-medium tracking-tight text-tx\">{title}</h3>\n        <p className=\"mt-2 text-sm leading-6 text-mute\">{body}</p>\n      </div>\n    </div>\n  )\n}\n"
    }
  ],
  "cssVars": {
    "theme": {
      "color-bg": "var(--bg)",
      "color-panel": "var(--panel)",
      "color-panel2": "var(--panel2)",
      "color-line": "var(--line)",
      "color-line2": "var(--line2)",
      "color-tx": "var(--tx)",
      "color-mute": "var(--mute)",
      "color-faint": "var(--faint)",
      "color-acc": "var(--acc)",
      "color-acc-fg": "var(--acc-fg)"
    },
    "light": {
      "bg": "#ffffff",
      "panel": "#f5f5f7",
      "panel2": "#e8e8ed",
      "line": "#e5e5ea",
      "line2": "#d2d2d7",
      "tx": "#1d1d1f",
      "mute": "#6e6e73",
      "faint": "#a1a1a6",
      "acc": "#1d1d1f",
      "acc-fg": "#ffffff"
    },
    "dark": {
      "bg": "#000000",
      "panel": "#141416",
      "panel2": "#1f1f22",
      "line": "#262628",
      "line2": "#3a3a3d",
      "tx": "#f5f5f7",
      "mute": "#a1a1a6",
      "faint": "#6e6e73",
      "acc": "#f5f5f7",
      "acc-fg": "#000000"
    }
  },
  "css": {
    ".light": {
      "--bg": "#ffffff",
      "--panel": "#f5f5f7",
      "--panel2": "#e8e8ed",
      "--line": "#e5e5ea",
      "--line2": "#d2d2d7",
      "--tx": "#1d1d1f",
      "--mute": "#6e6e73",
      "--faint": "#a1a1a6",
      "--acc": "#1d1d1f",
      "--acc-fg": "#ffffff"
    }
  }
}
