Spotlight Card
Radial glow and a lit hairline edge that track your pointer (CSS variables, no re-renders); keyboard focus inside lights it too.
Try it: Move across the card — the spotlight follows.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/spotlight-card.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/spotlight-card. You can also copy the source into components/ui/spotlight-card.tsx (view on GitHub).
Usage
import { SpotlightCard } from '@/components/ui/spotlight-card'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
spotlightColor | string | 'rgba(249, 115, 22, 0.16)' | Fill glow colour. |
borderGlow | boolean | true | Light the 1px edge nearest the pointer. |
edgeColor | string | 'rgba(249, 115, 22, 0.7)' | Edge glow colour. |
size | number | 360 | Spotlight radius (px). |
Related Cards components
- Tilt Card
Spring-damped 3D tilt with real perspective, a soft specular glare and a gentle lift. Mouse only; static under reduced motion.
- Topographic Stack
Contour-offset layers separate on hover.
- Glass Card
Liquid-glass surface with specular rim, inner hairline and layered depth; regular (frosted) or clear variants, and a solid fallback for prefers-reduced-transparency.
- Windowpane Story Card
Frosted pane slides to reveal evidence.
- Swipe Cards
Stacked deck: drag, flick, tap or arrow-key cards away with keep/pass stamps; the deck springs forward and every swipe is announced. Fades instead of flying under reduced motion.
- Tide Deck
Drag a deck whose depth reacts to velocity.