{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "masonry-drift",
  "title": "Masonry Drift",
  "type": "registry:component",
  "description": "Columns drift at different speeds",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/masonry-drift.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/masonry-drift.jsx",
      "content": "'use client'\n\nimport { motion } from 'motion/react'\n\nconst T = [\n  ['from-[#a8644a] to-[#2e1810]', 140], ['from-[#3a3a3d] to-[#111112]', 90], ['from-[#c8a27a] to-[#3d2b1c]', 120],\n  ['from-[#8a8556] to-[#24220f]', 160], ['from-[#6b7f5a] to-[#1b2216]', 100], ['from-[#7a4a63] to-[#24131c]', 130],\n]\n\nfunction Col({ speed, offset }) {\n  const tiles = [...T.slice(offset), ...T.slice(0, offset)]\n  return (\n    <div className=\"h-full overflow-hidden\">\n      <motion.div animate={{ y: ['0%', '-50%'] }} transition={{ repeat: Infinity, ease: 'linear', duration: speed }} className=\"flex flex-col gap-2\">\n        {[...tiles, ...tiles].map(([g, h], i) => <div key={i} className={`rounded-lg bg-gradient-to-br ${g}`} style={{ height: h }} />)}\n      </motion.div>\n    </div>\n  )\n}\n\nexport default function MasonryDrift({ speeds = [22, 30, 18] }) {\n  return (\n    <div className=\"grid h-72 w-full max-w-md grid-cols-3 gap-2 overflow-hidden rounded-2xl border border-line p-2 [mask-image:linear-gradient(transparent,#000_15%,#000_85%,transparent)]\">\n      {speeds.map((s, i) => <Col key={i} speed={s} offset={i * 2} />)}\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"
    }
  }
}
