honestui

Mesh Gradient

Shaders

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

Dependencies

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    31
  • Warp

    Warp

    1
  • Schedule Builder

    Schedule Builder

  • Audit Log

    Audit Log

  • Secret Row

    Secret Row

  • Undoable Action

    Undoable Action

  • OTP Field

    OTP Field

  • Audio Orb

    Audio Orb

More in Shaders

View all
  • Glass Fold

    Glass Fold

    593
  • Shader Animation

    Shader Animation

    3.9K
  • Fluted Glass App Download

    Fluted Glass App Download

  • Chroma Sense Hero

    Chroma Sense Hero

    23
  • LightSpeed

    LightSpeed

    253
  • Illos Knowledge Sources

    Illos Knowledge Sources

    76
  • Shader Lines

    Shader Lines

    2.5K
  • Wave

    Wave

    730