About
Blend two to six colors that drift slowly into each other.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Mesh Gradient to your project and fits it to your theme.
Code
How Mesh Gradient is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import MeshGradient from "@/components/ui/honest-mesh-gradient";
interface MeshGradientSettings {
colors: string[];
speed: number;
distortion: number;
swirl: number;
sharpness: number;
grain: number;
paused: boolean;
}
const defaults: MeshGradientSettings = {
colors: ["#f3ebe2", "#e5b9a4", "#9aa9cf", "#3e4a70"],
speed: 0.5,
distortion: 0.6,
swirl: 0.25,
sharpness: 0.5,
grain: 0,
paused: false,
};
export default function MeshGradientDemo() {
const settings = defaults;
return (
<div className="flex min-h-[420px] w-full items-center justify-center p-6">
<div className="h-80 w-full max-w-xl overflow-hidden rounded-xl">
<div className="size-full bg-[#9aa9cf]">
<MeshGradient className="size-full" {...settings} />
</div>
</div>
</div>
);
}
















