{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tilt-pass",
  "title": "Tilt Pass",
  "type": "registry:component",
  "description": "Card tilts in 3D with glare that tracks light",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/tilt-pass.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/tilt-pass.jsx",
      "content": "'use client'\n\nimport { useRef } from 'react'\nimport { motion, useMotionValue, useSpring, useTransform, useMotionTemplate } from 'motion/react'\n\nexport default function TiltPass({ name = 'Aseel K.', tier = 'Founding member', id = 'KV-0042' }) {\n  const ref = useRef(null)\n  const px = useMotionValue(0.5), py = useMotionValue(0.5)\n  const rx = useSpring(useTransform(py, [0, 1], [14, -14]), { stiffness: 200, damping: 18 })\n  const ry = useSpring(useTransform(px, [0, 1], [-18, 18]), { stiffness: 200, damping: 18 })\n  const gx = useTransform(px, (v) => `${v * 100}%`), gy = useTransform(py, (v) => `${v * 100}%`)\n  const glare = useMotionTemplate`radial-gradient(circle at ${gx} ${gy}, rgba(255,255,255,.22), transparent 45%)`\n  return (\n    <div className=\"[perspective:900px]\">\n      <motion.div\n        ref={ref}\n        onPointerMove={(e) => { const r = ref.current.getBoundingClientRect(); px.set((e.clientX - r.left) / r.width); py.set((e.clientY - r.top) / r.height) }}\n        onPointerLeave={() => { px.set(0.5); py.set(0.5) }}\n        style={{ rotateX: rx, rotateY: ry, transformStyle: 'preserve-3d' }}\n        className=\"relative h-48 w-80 overflow-hidden rounded-2xl border border-line2 bg-[linear-gradient(135deg,#1b1b20,#0c0c0e_60%,#1f140e)] p-5 shadow-[0_30px_60px_rgba(0,0,0,.6)]\"\n      >\n        <div className=\"flex items-center justify-between\">\n          <span className=\"text-sm font-semibold tracking-tight text-tx\">kavyn<span className=\"text-faint\">UI</span></span>\n          <span className=\"font-mono text-[10px] text-faint\">{id}</span>\n        </div>\n        <div className=\"mt-8 h-7 w-10 rounded-md bg-gradient-to-br from-[#d8b27a] to-[#8a6a3a]\" style={{ transform: 'translateZ(30px)' }} />\n        <div className=\"absolute bottom-5 left-5\" style={{ transform: 'translateZ(40px)' }}>\n          <div className=\"text-lg font-medium text-tx\">{name}</div>\n          <div className=\"text-xs text-acc\">{tier}</div>\n        </div>\n        <motion.div style={{ background: glare }} className=\"pointer-events-none absolute inset-0 mix-blend-screen\" />\n      </motion.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"
    }
  }
}
