ZapKit

Mesh gradient generator

Blend several colours that flow into each other from different points, for hero backgrounds, cards and wallpapers, in pure CSS with no image file.

What is a mesh gradient?

A mesh gradient blends several colours from different points so they flow into one another in every direction, unlike a linear gradient that runs in a straight line. It's the soft, glowing, colourful background behind many modern product launches, apps and wallpapers.

Choose a base colour, add up to six colour points, move each one with sliders and set how widely they blend. The preview shows numbered markers where each colour sits. Copy the result as pure CSS, or download it as a high-resolution PNG wallpaper.

How to use the Mesh gradient generator

  1. 1.Place the colours

    Pick up to six colours and set where each one sits.

  2. 2.Blend

    Adjust how far colours spread, or press Randomise for ideas.

  3. 3.Export

    Copy the CSS, or download a PNG wallpaper.

Example: the default four-colour mesh

A dark navy base with four colours:

Base
#1b2340
Colours
blue top left, red top right, cyan bottom, purple bottom left
Blend
55%
Output
4 radial-gradient layers

A rich, glowing background that shifts from blue to red to cyan across the section.

Mesh gradients in plain CSS

CSS has no true mesh gradient, but stacking soft radial gradients, each fading from one colour to transparent at its own position, over a base colour gives the same flowing look. It weighs a few hundred bytes and stays sharp at any screen size.

Randomise keeps the colours in one hue family on a dark base of the same hue, which tends to look harmonious. The PNG wallpaper closely matches the CSS and comes in desktop, phone, square and 4K sizes.

Frequently asked questions

Does it work in every browser?

Yes. Layered radial gradients work in all current browsers.

Can I animate it?

Animating background-position or using a CSS @property for the positions can make the colours drift.

Why does the PNG look slightly different?

CSS gradients stretch into ellipses on wide areas, while the PNG uses circles, so edges can differ a little.

Can I share a gradient?

Yes. The colours and positions are in the page address.

More Developer tools