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.

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