crucıble

Filament

An animated conic-gradient border — a white-hot filament head trailing a cool silver-blue tail that desaturates and fades to a faint slate trace. Pure CSS @property animation, zero JS, zero dependencies.

cssfree

Installation

CLI

npx shadcn@latest add @crucible/filament

Props

PropTypeDefaultDescription
childrenReact.ReactNodeCard content.
colors[string, string, string, string]Four stops for the traveling filament: [head, hot, cool, trace] — a white-hot leading point, the bright silver it cools through, the cool blue-gray it desaturates to, and a faint slate trace before it fades.
radiusnumberBorder radius in px.
thicknessnumberRing thickness in px.
durationnumberSeconds for one full lap.
pausedbooleanFreeze the animation, holding the current frame.
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.