About
A dot-grid background on black whose brighter inner grid is revealed through a soft circular spotlight that eases toward the cursor, like sweeping a torch across graph paper.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Spotlight Grid to your project and fits it to your theme.
Code
How Spotlight Grid is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import SpotlightGrid from "@/components/ui/spotlight-grid";
const ACCENTS: Record<string, string> = {
phosphor: "#86efac",
frost: "#b9cce4",
lilac: "#c8b9ea",
ember: "#f3b45f",
};
export default function SpotlightGridDemo({
variant = "phosphor",
}: {
variant?: string;
}) {
const accent = ACCENTS[variant] ?? ACCENTS.phosphor;
return (
<div className="w-full h-screen">
<SpotlightGrid accent={accent} className="h-full min-h-full w-full">
<div className="pointer-events-none flex h-full flex-col items-center justify-center gap-3 px-6 text-center">
<p
className="font-mono text-[11px] uppercase tracking-[0.2em]"
style={{ color: accent }}
>
Plan · Shape · Ship · Learn
</p>
<p className="max-w-md text-2xl font-medium tracking-tight text-white/85">
Move your cursor across the grid.
</p>
</div>
</SpotlightGrid>
</div>
);
}
















