MewTools

ColorTool 04

Gradient Generator

Design a two-stop gradient and get the exact CSS. Adjust the angle or switch to radial, then paste it into any element.

Runs locallyNo uploadTwo colours and an angleFree, no account

Generate CSS

29 / 232
Type

Result

Waiting

Run the tool and the result appears here. Copy it or download it — nothing leaves this tab.

Privacy

Local by design

Everything you type stays in this tab and is processed by JavaScript on your device. Nothing is uploaded, logged or stored on a server.

How to use it

01

Choose the start and end colours with the pickers.

02

Set an angle for a linear gradient, or switch to radial for a circular falloff.

03

Copy the background declaration into your stylesheet.

When to use it

Hero backgrounds

Add depth behind a headline without an image request.

Buttons

Give a primary action a subtle two-tone fill.

Placeholders

Use a gradient as a loading placeholder while an image arrives.

Questions

What does the angle mean?

In CSS, 0deg points up and angles increase clockwise. 135deg runs from top-left to bottom-right.

Can I add more colour stops?

This tool builds two-stop gradients. Add extra stops by hand in the copied declaration.

Is text over a gradient readable?

Not guaranteed. Test the lightest and darkest areas with the contrast checker.

How do I make a radial gradient instead of a linear one?

Switch the type to radial and the colours radiate from a centre point instead of running along an angle. Radial suits spotlights and vignettes, while linear is the safer choice for full-width section backgrounds.

Why does my gradient look banded?

Banding appears when two colours are far apart and the gradient covers a large area, because 8-bit screens cannot render every step. Narrow the colour distance, add an intermediate stop, or accept a faint noise layer to break up the bands.

↑↓ to move↵ to openEsc to close