ham7a311

Spotlight Grid

Backgrounds 9

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

    253
  • Route Globe

    Route Globe

    195
  • Glass Tiles

    Glass Tiles

    183
  • Orbit Ring Stats

    Orbit Ring Stats

    82
  • Glyph Swell

    Glyph Swell

    78
  • Fan Deck Card

    Fan Deck Card

    77
  • Ask Bar

    Ask Bar

    63
  • Glass Ribbons

    Glass Ribbons

    53

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    976
  • Honey Ember Background

    Honey Ember Background

    107
  • Background Components

    Background Components

    254
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    643
  • Background snippets

    Background snippets

    25
  • Gradient Backgrounds

    Gradient Backgrounds

    28
  • Dark Gradient Background

    Dark Gradient Background

    169
  • Gradient Blur Bg

    Gradient Blur Bg

    19