{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ink-bleed-button",
  "title": "Ink Bleed Button",
  "type": "registry:component",
  "description": "Fill floods in from the exact entry point",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/ink-bleed-button.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/ink-bleed-button.jsx",
      "content": "'use client'\n\nimport { useRef, useState } from 'react'\nimport { motion } from 'motion/react'\n\nexport default function InkBleedButton({ children = 'Start building', color = 'var(--acc)' }) {\n  const ref = useRef(null)\n  const [s, setS] = useState({ x: 0, y: 0, on: false, r: 0 })\n\n  const at = (e, on) => {\n    const b = ref.current.getBoundingClientRect()\n    const x = e.clientX - b.left, y = e.clientY - b.top\n    const r = Math.hypot(Math.max(x, b.width - x), Math.max(y, b.height - y))\n    setS({ x, y, on, r })\n  }\n\n  return (\n    <button\n      ref={ref}\n      onPointerEnter={(e) => at(e, true)}\n      onPointerLeave={(e) => at(e, false)}\n      className=\"relative h-12 overflow-hidden rounded-xl border border-line2 bg-panel px-7 text-sm font-medium text-tx\"\n    >\n      <motion.span\n        aria-hidden\n        className=\"absolute rounded-full\"\n        style={{ left: s.x, top: s.y, width: s.r * 2, height: s.r * 2, marginLeft: -s.r, marginTop: -s.r, background: color }}\n        initial={false}\n        animate={{ scale: s.on ? 1 : 0 }}\n        transition={{ type: 'spring', stiffness: 170, damping: 24 }}\n      />\n      <motion.span className=\"relative\" animate={{ color: s.on ? 'var(--acc-fg)' : 'var(--tx)' }} transition={{ duration: 0.25 }}>\n        {children}\n      </motion.span>\n    </button>\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"
    }
  }
}
