Make your AI a shadcn expert

React Spotlight Background

Interactive cursor-following spotlight with smooth gradient glow that tracks mouse movement

React Spotlight Background preview

Scroll to load preview

A soft, radial gradient that follows your cursor around the screen. It's that subtle spotlight effect you see on premium sites like Linear and Stripe—creates depth and draws attention without being distracting. The glow smoothly eases toward the cursor position rather than snapping, which feels much more natural. When there's no mouse activity (or on mobile), it drifts slowly in ambient mode. You can stack multiple spotlights with different colors for richer effects. It's pure CSS gradients with JS for positioning, so performance is excellent. Great for hero sections, pricing pages, or anywhere you want that polished, interactive feel.

Install with AI

If you've connected the shadcn.io MCP server to Claude Code, Cursor, Windsurf, or any MCP-ready AI editor, prompt your agent to install this background for you — no copy-paste, no CLI:

use shadcnio to install the spotlight background into my project

FAQ

Was this page helpful?

Sign in to leave feedback.