GodUI

Blueprint Grid

A technical lattice — lines, dots, or a perspective floor — with a light sweep and cursor spotlight.

The engineering-blueprint backdrop: a precise lattice with a diagonal light sweep traveling across it and a soft spotlight that follows the cursor. Choose ruled lines, a dots matrix, or a floor-fading perspective grid. Pure CSS. Drop it as the first child of a relative overflow-hidden container.

Built with precision

Move your cursor across the grid.

Installation

pnpm dlx shadcn@latest add "https://godui.design/r/blueprint-grid.json"

Usage

tsx
 
import { BlueprintGrid } from "@/components/godui/blueprint-grid";

<div className="relative overflow-hidden">
  <BlueprintGrid />
  <YourContent />
</div>

The layer is absolute inset-0 z-base; parent must be relative overflow-hidden, content at z-raised+. Color defaults to --color-border. The sweep hides under prefers-reduced-motion; the static lattice remains.

Examples

Dots

Perspective

Props

PropTypeDefaultDescription
variant"lines" | "dots" | "perspective""lines"Grid style.
cellSizenumber32Cell size (px).
colorstring--color-borderLine / dot color.
sweepbooleantrueDiagonal light sweep.
sweepDurationnumber8Seconds per sweep pass.
spotlightbooleantrueCursor spotlight that lights up nearby cells (ignored for perspective).
spotlightColorstring--color-primaryColor the spotlit cells light up in.
spotlightRadiusnumber200Spotlight radius (px).

Also accepts standard div attributes (e.g. className, style).

On this page

Built with GodUI

Beautifully crafted motion components for modern interfaces.

Star on GitHub