CSS Gradient Generator

Pick two colors and a direction, and get the CSS code for a smooth color gradient background.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the CSS Gradient Generator

  1. Pick the first color.
  2. Pick the second color.
  3. Pick a direction, then copy the CSS code.

Frequently asked questions

What is a CSS gradient?

It is a smooth blend between two or more colors, used as a background. The browser draws it, so no image file is needed.

Why does the order of the colors matter?

The first color sits at the start of the direction and the second at the end. Swap them to reverse the blend.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.