DevToolbox

โ†‘ โ†“ to select ยท Enter to open ยท Esc to close

CSS Gradient Generator

Build a linear or radial CSS gradient and copy the resulting CSS declaration.

background: linear-gradient(135deg, #667eea, #764ba2);

How to use the CSS Gradient Generator

Build a linear or radial CSS gradient and copy the resulting CSS declaration.

Steps

  1. Choose the gradient type and colors.
  2. Adjust the angle when using a linear gradient.
  3. Copy the CSS and paste it into a stylesheet.

Example: A two-color linear gradient

linear-gradient(135deg, #667eea, #764ba2)

Limitations

The preview uses CSS gradient syntax supported by modern browsers. It does not check contrast or predict how the gradient looks across every display.