Interactive CSS Mesh Gradient Generator
Build a CSS mesh gradient by dragging color points on a canvas. Layered radial-gradient output with adjustable spread and copy-ready code, all in your browser.
Drag a handle to move its color. Keyboard: arrow keys move 1%, Shift + arrow moves 5%.
Base & spread
Color points (4/6)
background-color: #0F172A;
background-image:
radial-gradient(at 18% 22%, #7C3AED 0px, transparent 60%),
radial-gradient(at 82% 18%, #2563EB 0px, transparent 60%),
radial-gradient(at 70% 82%, #10B981 0px, transparent 60%),
radial-gradient(at 20% 80%, #F59E0B 0px, transparent 60%);Technical Specification & Mathematical Principles
How the Mesh Gradient Generator Works
CSS has no native mesh gradient, but stacking several radial-gradient() layers over a background color produces the same soft blended look. Each layer is written radial-gradient(at X% Y%, color 0px, transparent S%), where X and Y position the color point and S controls how far it spreads before fading out.
Layers are painted top to bottom and blend through their transparent regions. Because the output is plain CSS with no images, it scales to any size, weighs a few hundred bytes and can be animated by changing the positions with CSS custom properties.
Frequently Asked Questions
How is this different from a linear gradient?
Can I animate the mesh?
Why is there a background color as well?
Related Design & Color Instruments
CSS Gradient Maker
Design linear and radial CSS gradients with 360-degree angle control, multi-stop adjustments, and instant code export.
Radial Gradient Tool
Visual builder for CSS radial-gradient() with circle/ellipse shapes, position coordinates, and color stops.
Conic Gradient Generator
Design CSS conic-gradient() color wheels with starting angle, center position and color stops. Includes a repeating mode and copy-ready CSS output.
Glassmorphism Generator
Create CSS frosted glass with backdrop-filter blur, saturation, tint opacity and border opacity controls. Live preview and copy-ready CSS in your browser.