A meshed background is a modern CSS design technique that uses multiple overlapping radial-gradient() layers to create soft, colorful, organic patterns - similar to what you see in modern UI backgrounds or abstract art. These backgrounds don’t require any images; they’re made entirely with pure CSS using the background-image property.
In a CSS Meshed Background Generator, users can visually create these effects by positioning multiple color spots (gradients) across a canvas. Each spot represents one radial-gradient() layer that softly blends with others, forming a mesh of color transitions.
The effect is achieved by combining several radial-gradient() backgrounds into a single background-image property. Each gradient defines a color circle that fades outward, and together they form an abstract, smooth composition.
.element {
background-image:
radial-gradient(at 20% 30%, #ff9a9e 0%, transparent 70%),
radial-gradient(at 80% 40%, #fad0c4 0%, transparent 70%),
radial-gradient(at 50% 80%, #fbc2eb 0%, transparent 70%);
}
In this example:
The overlapping gradients blend naturally, creating a mesh-like color composition.
First, define the element that will hold your meshed background by clicking on the canvas:
Add several radial-gradient() layers, each with a unique position and color. The trick is to make them blend softly by ending each gradient in transparency.
Here, we used multiple gradients placed in different positions around the viewport, creating a fluid mesh pattern that softly transitions between pink, orange, and blue tones.
The at X% Y% part determines where the gradient center appears. You can use percentages or keywords like top, left, center, etc.
Try positioning gradients near edges or corners to achieve balance and color flow.
The percentage after the color defines how far the solid color extends before it fades into transparency. For example:
0%, transparent 50% – smaller, more focused color spot.0%, transparent 80% – larger, more diffused color area.You can mix both to create contrast and depth in your mesh pattern.
background-blend-mode for interesting effects like screen or overlay.
The radial-gradient() and multiple background-image syntax are supported in all major browsers, including Chrome, Firefox, Safari, and Edge.
Animations using @keyframes are also fully supported.
CSS meshed backgrounds bring a vibrant, artistic touch to modern web design. By layering several radial-gradient() elements within a single background-image, you can create stunning organic color patterns - all without a single image file. Whether static or animated, this technique gives you full creative freedom and ensures a lightweight, responsive design for any project.