crucıble

Kindle

A cursor-following radial spotlight card — a soft white glow that breathes gently and brightens the nearest border edge as it passes. Pure CSS, works with arbitrary children; a dimmed ghost spotlight wanders the card when untouched.

cssfree

Installation

CLI

npx shadcn@latest add @crucible/kindle

Props

PropTypeDefaultDescription
childrenReact.ReactNodeArbitrary card content.
colorstringsoft whiteCore color of the spotlight, any CSS color.
rimColorstringfaint whiteOuter rim / haze color, any CSS color.
radiusnumber240Spotlight radius in px.
borderGlowbooleantrueBrighten the border segment nearest the cursor.
idlebooleantrueIdle autoplay: after 1.5s with no pointer on the card, a dimmed ghost spotlight wanders the face on a slow Lissajous path. A real pointer takes over instantly. Off under reduced motion; sleeps offscreen.
Also accepts all props of React.ComponentPropsWithoutRef<"div"> — they pass through to the underlying element.

Honors prefers-reduced-motion with a designed static fallback, and passes className through.