About
Canvas particle field that drifts and twinkles behind any container. Density scales with size, colors resolve from tokens, and it pauses offscreen and under reduced-motion. No dependencies.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sparkles to your project and fits it to your theme.
Code
How Sparkles is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Sparkles } from "@/components/ui/sparkles";
export default function SparklesDemo() {
return (
<div className="relative mx-auto flex h-64 w-full max-w-xl items-center justify-center overflow-hidden rounded-xl border border-white/10 bg-zinc-900">
<Sparkles color="white" />
<p className="relative z-10 px-10 text-center font-serif text-2xl italic text-white">
A quiet field of light.
</p>
</div>
);
}
















