honestui

Voronoi

Shaders

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>
  );
}

Dependencies

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    31
  • Schedule Builder

    Schedule Builder

  • Audit Log

    Audit Log

  • Secret Row

    Secret Row

  • Undoable Action

    Undoable Action

  • OTP Field

    OTP Field

  • Audio Orb

    Audio Orb

  • AI Glow Border

    AI Glow Border

More in Shaders

View all
  • Glass Fold

    Glass Fold

    591
  • Shader Animation

    Shader Animation

    3.9K
  • Chroma Sense Hero

    Chroma Sense Hero

    23
  • LightSpeed

    LightSpeed

    253
  • Illos Knowledge Sources

    Illos Knowledge Sources

    76
  • Animated Shader Background

    Animated Shader Background

    2.1K
  • Molten Pillars

    Molten Pillars

    18
  • Shader Lines

    Shader Lines

    2.5K