{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logo-constellation",
  "title": "Logo Constellation",
  "type": "registry:component",
  "description": "Logos linked by lines that pulse",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/logo-constellation.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/logo-constellation.jsx",
      "content": "'use client'\n\nimport { useState } from 'react'\nimport { motion } from 'motion/react'\n\nconst NODES = [\n  { n: 'Slack', x: 60, y: 60 }, { n: 'Stripe', x: 250, y: 40 }, { n: 'Linear', x: 330, y: 150 },\n  { n: 'Notion', x: 270, y: 250 }, { n: 'GitHub', x: 70, y: 240 }, { n: 'Figma', x: 30, y: 150 },\n]\nconst C = { x: 180, y: 150 }\n\nexport default function LogoConstellation({ nodes = NODES, hub = 'K' }) {\n  const [h, setH] = useState(null)\n  return (\n    <svg viewBox=\"0 0 360 300\" className=\"w-full max-w-md\">\n      {nodes.map((n, i) => (\n        <g key={n.n}>\n          <line x1={C.x} y1={C.y} x2={n.x} y2={n.y} stroke={h === i ? 'var(--acc)' : 'var(--line2)'} strokeWidth=\"1\" />\n          <motion.line x1={C.x} y1={C.y} x2={n.x} y2={n.y} stroke=\"var(--acc)\" strokeWidth=\"2\" strokeLinecap=\"round\" pathLength=\"1\" strokeDasharray=\"0.08 0.92\"\n            animate={{ strokeDashoffset: [1, 0] }} transition={{ repeat: Infinity, duration: 2.2, delay: i * 0.37, ease: 'easeInOut' }} />\n        </g>\n      ))}\n      {nodes.map((n, i) => (\n        <motion.g key={n.n} onPointerEnter={() => setH(i)} onPointerLeave={() => setH(null)} animate={{ scale: h === i ? 1.15 : 1 }} style={{ transformOrigin: `${n.x}px ${n.y}px` }} className=\"cursor-pointer\">\n          <rect x={n.x - 22} y={n.y - 22} width=\"44\" height=\"44\" rx=\"12\" fill=\"var(--panel2)\" stroke={h === i ? 'var(--acc)' : 'var(--line2)'} />\n          <text x={n.x} y={n.y + 5} textAnchor=\"middle\" fontSize=\"15\" fontWeight=\"600\" fill=\"var(--tx)\">{n.n[0]}</text>\n          <text x={n.x} y={n.y + 38} textAnchor=\"middle\" fontSize=\"10\" fill=\"var(--mute)\" opacity={h === i ? 1 : 0.6}>{n.n}</text>\n        </motion.g>\n      ))}\n      <rect x={C.x - 28} y={C.y - 28} width=\"56\" height=\"56\" rx=\"16\" fill=\"var(--tx)\" />\n      <rect x={C.x + 8} y={C.y + 8} width=\"12\" height=\"12\" rx=\"4\" fill=\"var(--acc)\" />\n      <text x={C.x - 4} y={C.y + 6} textAnchor=\"middle\" fontSize=\"18\" fontWeight=\"700\" fill=\"var(--bg)\">{hub}</text>\n    </svg>\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"
    }
  }
}
