SShinUI

Gradient Mesh

Four drifting blurred blobs plus an SVG grain overlay. Renders on the server, costs nothing at runtime, and gets most of the way to a WebGL mesh gradient.

backgroundgradientmeshcss-only

Pure CSS

Mesh Gradient

Usage

Drop the file into your project and import it. There is no package to install.

usage.tsx
import { GradientMesh } from "@/registry/components/gradient-mesh";

export function Example() {
  return <GradientMesh />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge

More in Backgrounds