{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "isometric-stack",
  "title": "Isometric Stack",
  "type": "registry:component",
  "description": "App layers separate isometrically on scroll",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/isometric-stack.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/isometric-stack.jsx",
      "content": "'use client'\n\nimport { useEffect, useState } from 'react'\nimport { motion } from 'motion/react'\n\nconst LAYERS = [\n  { n: 'Edge', c: '#f5f5f7' }, { n: 'API', c: '#c7c7cc' }, { n: 'Queue', c: '#8a8a93' }, { n: 'Postgres', c: '#5c5c66' },\n]\n\nexport default function IsometricStack({ layers = LAYERS }) {\n  const [hover, setHover] = useState(false)\n  const [auto, setAuto] = useState(false)\n  useEffect(() => { const t = setInterval(() => setAuto((a) => !a), 2600); return () => clearInterval(t) }, [])\n  const spread = hover || auto\n  return (\n    <div onPointerEnter={() => setHover(true)} onPointerLeave={() => setHover(false)} className=\"relative grid h-72 w-72 place-items-center\">\n      {layers.map((l, i) => (\n        <motion.div\n          key={l.n}\n          className=\"absolute size-36\"\n          style={{ zIndex: layers.length - i }}\n          animate={{ y: (i - (layers.length - 1) / 2) * (spread ? 52 : 14) }}\n          transition={{ type: 'spring', stiffness: 160, damping: 18, delay: i * 0.04 }}\n        >\n          <div className=\"size-full rounded-xl border bg-panel2/90 backdrop-blur-sm\" style={{ transform: 'rotateX(58deg) rotateZ(-45deg)', borderColor: l.c + '99', boxShadow: `0 0 30px ${l.c}22 inset` }}>\n            <div className=\"grid size-full grid-cols-4 gap-1.5 p-3 opacity-60\">{Array.from({ length: 8 }).map((_, k) => <span key={k} className=\"rounded-sm\" style={{ background: l.c + '33' }} />)}</div>\n          </div>\n          <motion.span animate={{ opacity: spread ? 1 : 0, x: spread ? 0 : -8 }} className=\"absolute -right-16 top-1/2 font-mono text-[11px]\" style={{ color: l.c }}>{l.n}</motion.span>\n        </motion.div>\n      ))}\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"
    }
  }
}
