Skip to content

Chroma Mesh

Slow-moving colour clouds with a fine grain texture.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import ChromaMesh from "./ChromaMesh";
export default function Example() {
return (
<ChromaMesh
colors={[
"#251648",
"#e27669",
"#a798ed",
"#f1cfa0"
]}
duration={18}
blur={60}
grain={0.12}
paused={false}
minHeight={420}
/>
);
}

Using Chroma Mesh

Use a small palette of related colours for a soft background behind text. minHeight reserves the section's vertical space.

Increase blur for broader colour transitions and lower grain for a smoother finish. Use paused when the surrounding interface needs to remain still.

Props

NameTypeRequiredDefaultDescription
colorsstring[]No["#251648", "#e27669", "#a798ed", "#f1cfa0"]Colour palette for the four overlapping clouds. Empty palettes use a single dark fallback.
durationnumberNo18Length of each animation cycle in seconds.
blurnumberNo60Blur radius in pixels.
grainnumberNo0.12Texture opacity from 0 to 1.
minHeightnumber | stringNo340Minimum height in pixels or a CSS length. The component can fill a taller parent.
pausedbooleanNofalsePause the clouds at their current position.
childrenReactNodeNoundefinedOptional content layered above the background.
classNamestringNo""Additional CSS classes, merged with the component styles.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing and visual overrides.

Related components

Lava Lamp

Backgrounds

Warm liquid forms merge and drift inside a softly lit glass lamp.

Helix Field

Backgrounds

Two strands of shaded particles rotate around fine connecting rungs.

Wave Lattice

Backgrounds

A fine perspective mesh drifts over a sculpted wave surface.

Kinetic Mobile

Backgrounds

Suspended discs, rings and counterweights sway on fine connecting rods.