ham7a311

Spotlight Grid

Backgrounds

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>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    198
  • Route Globe

    Route Globe

    162
  • Glass Tiles

    Glass Tiles

    151
  • Orbit Ring Stats

    Orbit Ring Stats

    63
  • Glyph Swell

    Glyph Swell

    60
  • Ask Bar

    Ask Bar

    51
  • Fan Deck Card

    Fan Deck Card

    43
  • Intent Label

    Intent Label

    41

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    933
  • Background snippets

    Background snippets

    117
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    620
  • Gradient Backgrounds

    Gradient Backgrounds

    27
  • Background Components

    Background Components

    20
  • Jade Sky

    Jade Sky

    113
  • Gradient Blur Bg

    Gradient Blur Bg

    80
  • LivingOrigami bg

    LivingOrigami bg

    161