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.json

Or, 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

Component props
PropTypeDefaultNotes
spotlightColorstring'rgba(249, 115, 22, 0.16)'Fill glow colour.
borderGlowbooleantrueLight the 1px edge nearest the pointer.
edgeColorstring'rgba(249, 115, 22, 0.7)'Edge glow colour.
sizenumber360Spotlight radius (px).
  • 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.

See all 27 Cards components