About
A surface with a pointer-following spotlight rendered as a springy radial gradient.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Spotlight Card to your project and fits it to your theme.
Code
How Spotlight Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import { SpotlightCard } from "@/components/ui/spotlight-card";
export default function SpotlightCardDemo() {
return (
<main className="flex min-h-screen items-center justify-center bg-background px-6">
<SpotlightCard
alwaysOn
color="rgba(56,189,248,0.38)"
size={340}
className="w-full max-w-sm p-8"
>
<div className="flex flex-col gap-4">
<span className="w-fit rounded-full border border-border bg-background/60 px-3 py-1 text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground">
Spotlight
</span>
<h2 className="text-2xl font-semibold tracking-[-0.03em]">
Focus on what matters
</h2>
<p className="text-sm leading-6 text-muted-foreground">
A soft light follows the pointer across the surface, revealing depth
without stealing attention.
</p>
</div>
</SpotlightCard>
</main>
);
}
















