{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "focus-grid",
  "title": "Focus Grid",
  "type": "registry:component",
  "description": "Hovered cell sharpens, the rest blur back",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/focus-grid.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/focus-grid.jsx",
      "content": "'use client'\n\nimport { useState } from 'react'\nimport { motion } from 'motion/react'\n\nconst CELLS = [\n  { t: 'Instant sync', d: 'Changes land everywhere in under a second.' }, { t: 'Audit log', d: 'Every edit, who and when.' },\n  { t: 'SSO', d: 'Google, Okta and SAML.' }, { t: 'Offline', d: 'Keep working on a plane.' },\n  { t: 'API', d: 'Everything in the UI, over REST.' }, { t: 'Exports', d: 'CSV, PDF and JSON, any time.' },\n]\n\nexport default function FocusGrid({ cells = CELLS }) {\n  const [h, setH] = useState(null)\n  return (\n    <div className=\"grid w-full max-w-md grid-cols-2 gap-2 sm:grid-cols-3\" onPointerLeave={() => setH(null)}>\n      {cells.map((c, i) => (\n        <motion.div\n          key={c.t}\n          onPointerEnter={() => setH(i)}\n          animate={{ filter: h == null || h === i ? 'blur(0px)' : 'blur(2.5px)', opacity: h == null || h === i ? 1 : 0.45, scale: h === i ? 1.04 : 1 }}\n          transition={{ type: 'spring', stiffness: 300, damping: 26 }}\n          className={`rounded-xl border p-4 ${h === i ? 'border-line2 bg-panel2' : 'border-line bg-panel'}`}\n        >\n          <div className=\"text-sm text-tx\">{c.t}</div>\n          <div className=\"mt-1 text-xs leading-relaxed text-mute\">{c.d}</div>\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"
    }
  }
}
