About
Fill a section with slowly shifting cells, like cracked glaze or stained glass.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Voronoi to your project and fits it to your theme.
Code
How Voronoi is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import Voronoi from "@/components/ui/honest-voronoi";
interface VoronoiSettings {
colors: string[];
edgeColor: string;
edgeWidth: number;
glow: number;
shading: number;
scale: number;
jitter: number;
distortion: number;
speed: number;
}
const defaults: VoronoiSettings = {
colors: ["#16181d", "#1c1f26", "#21252e", "#262a35"],
edgeColor: "#5eead4",
edgeWidth: 1.5,
glow: 0.35,
shading: 0.5,
scale: 6,
jitter: 0.85,
distortion: 0.25,
speed: 0.5,
};
export default function VoronoiDemo() {
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">
<Voronoi className="size-full" {...settings} />
</div>
</div>
);
}
















