← Back to the lab

Gradient & Mesh Generator

Create linear, radial, conic and mesh gradients visually: drag color points, shuffle harmonious colors, add motion and copy the CSS.

How to use Gradient & Mesh Generator

  1. Choose a gradient type: linear, radial, conic or mesh.
  2. Drag the color points on the canvas (or use the arrow keys) and adjust their spread, or press Shuffle colors for a harmonious set.
  3. Optionally turn on motion to animate the gradient.
  4. Copy the CSS and paste it into your project. It works in every modern browser, no images needed.

About Gradient & Mesh Generator

A mesh gradient blends several colors that come from different points of a surface, instead of along a single line. It is the soft, organic background you see on modern landing pages and app splash screens.

CSS has no mesh-gradient() function, so this mesh gradient generator builds one by stacking several radial gradients over a base color. You get the look of a design-tool mesh gradient as a few lines of lightweight CSS, which scales to any size and loads instantly.

What it does

  • Mesh gradients built from layered radial gradients - no images needed
  • Draggable color points and stops (mouse, touch or keyboard)
  • Harmony-based color shuffle and presets
  • Optional animated drift that respects reduced-motion preferences

FAQ

How are mesh gradients made in CSS?

By stacking several radial-gradient() layers at different positions over a base color. The generator writes that CSS for you.

Will the animated gradient hurt accessibility?

The exported CSS includes a prefers-reduced-motion rule that turns the animation off for people who ask for less motion.

Can I use the gradient in Figma?

The tool exports CSS. To use the same look in Figma, recreate the color points as layered radial gradients, or take a screenshot of the canvas as a background image.

Is a CSS gradient better than an image for performance?

Usually yes: a few lines of CSS weigh almost nothing, stay sharp at any size and need no extra download, while a large background image can slow down the first paint.

More free tools