About
Here is Background Gradient Snippet component
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Background Gradient Snippet to your project and fits it to your theme.
Code
How Background Gradient Snippet is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
export default function Component() {
return (
<div className="fixed inset-0 -z-10 bg-slate-950">
<div className="absolute inset-0 bg-[radial-gradient(ellipse_90%_70%_at_50%_-10%,rgba(139,92,246,0.35),transparent)]" />
<div className="absolute inset-0 bg-[radial-gradient(ellipse_70%_50%_at_50%_90%,rgba(34,197,94,0.2),transparent)]" />
</div>
);
}
















