CTA Dark Spotlight

An always-dark closing section lit by a cursor torch: the headline ink and a dot grid brighten where the light falls, and it drifts on its own when no pointer is around.

ctadarkspotlightcursorpointer

Installation

Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/cta-dark-spotlight.tsx.

$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/cta-dark-spotlight.json"
Manual install+

1. Install the dependencies.

$pnpm add lucide-react motion

2. Copy the code from the Code tab above into your project.

Build it with AI

Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.

AI prompt

Add the "CTA Dark Spotlight" component from PixelPapa UI to this project.

What it is: An always-dark closing section lit by a cursor torch: the headline ink and a dot grid brighten where the light falls, and it drifts on its own when no pointer is around.
Category: Calls to Action. Depends on: lucide-react, motion.

1. Install it with the shadcn CLI:
   npx shadcn@latest add "https://pixelpapa.com/r/cta-dark-spotlight.json"
   (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/cta-dark-spotlight.tsx and install the listed dependencies.)
2. Import it from "@/components/pixelpapa/cta-dark-spotlight" and place it where I describe below.
3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours.

Where to use it: <describe the page and position here>

More calls to action

All 8 calls to action →