{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "retro-grid",
  "title": "Retro Grid",
  "author": "VenusUI",
  "description": "A perspective grid floor that scrolls toward the viewer and fades at the horizon.",
  "files": [
    {
      "path": "registry/default/ui/retro-grid.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface RetroGridProps extends React.ComponentProps<\"div\"> {\n  /** Tilt of the grid plane, in degrees. */\n  angle?: number\n  /** Cell size, in pixels. */\n  cellSize?: number\n}\n\n/**\n * A grid floor receding into the distance that slowly scrolls toward the\n * viewer. Fills its positioned parent and fades out at the horizon.\n * Decorative; stops moving when the user prefers reduced motion.\n */\nfunction RetroGrid({ angle = 65, cellSize = 56, className, style, ...props }: RetroGridProps) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"retro-grid\"\n      className={cn(\"pointer-events-none absolute inset-0 overflow-hidden [perspective:200px]\", className)}\n      style={{ \"--retro-grid-angle\": `${angle}deg`, \"--retro-grid-cell\": `${cellSize}px`, ...style } as React.CSSProperties}\n      {...props}\n    >\n      <div className=\"absolute inset-0 [transform:rotateX(var(--retro-grid-angle))]\">\n        <div\n          className=\"animate-retro-grid [margin-left:-200%] h-[300vh] w-[600vw] [transform-origin:100%_0_0] motion-reduce:animate-none\"\n          style={{\n            backgroundImage:\n              \"linear-gradient(to right, color-mix(in oklch, var(--foreground) 18%, transparent) 1px, transparent 0), linear-gradient(to bottom, color-mix(in oklch, var(--foreground) 18%, transparent) 1px, transparent 0)\",\n            backgroundSize: \"var(--retro-grid-cell) var(--retro-grid-cell)\",\n            backgroundRepeat: \"repeat\",\n            inset: \"0% 0px\",\n          }}\n        />\n      </div>\n      <div className=\"absolute inset-0 bg-linear-to-t from-background to-transparent to-90%\" />\n    </div>\n  )\n}\n\nexport { RetroGrid, type RetroGridProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-retro-grid": "retro-grid 15s linear infinite"
    }
  },
  "css": {
    "@keyframes retro-grid": {
      "0%": {
        "transform": "translateY(-50%)"
      },
      "100%": {
        "transform": "translateY(0)"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "backgrounds",
    "animations"
  ],
  "type": "registry:ui"
}