CSS Gradient Generator

Create beautiful linear and radial CSS gradients.

css
gradient
design
colors
generator
90°
0%
100%

Preview

background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);

About this tool

Design stunning CSS gradients with an easy-to-use visual editor. Create linear or radial gradients, add multiple color stops, adjust angles, and copy the generated CSS code.

Features

  • Create linear and radial CSS gradients visually
  • Add and customize multiple color stops
  • Adjust gradient angle and direction
  • Copy the generated CSS gradient code

How to Use

  1. Choose between linear or radial gradient type
  2. Add color stops and adjust their positions
  3. Set the gradient angle or direction
  4. Copy the CSS code for your project

Frequently Asked Questions

When should I use radial instead of linear?

Use radial for spotlight effects, vignetting, and anything where a single point of interest radiates outward (hero backgrounds, skeleton-loader shimmer). Use linear for sky-to-ground effects, section dividers, and most button or panel backgrounds. When in doubt, pick linear — it's the more neutral default.

Why do my gradients look banded from near-black to colour?

That's an 8-bit colour-depth limit — you can only have 256 intermediate steps per channel. Mitigate with a wider hue range (avoid dark-to-near-dark), added noise texture, or a wider-gamut colour space like oklch() which spreads perceptual steps more evenly.

Can I animate a gradient?

Not directly — CSS can't interpolate between two gradient values. Workarounds: animate background-position on an oversized gradient, fade between two layered gradients with opacity, or use conic-gradient inside an @property for browsers that support animatable custom properties.

What's the difference between linear, radial, and conic gradients?

linear-gradient goes in a straight line; radial radiates from a point; conic sweeps around a point like a clock hand. Conic is what you'd use for pie charts, colour wheels, and circular loaders. All three support the same colour-stop syntax.

Why does my gradient have a visible seam?

Usually because the first and last colour stops don't match. For seamless conic gradients, start and end on the same colour. For linear backgrounds that repeat, make sure stops are placed at 0% and 100% and match. For radial, place a matching stop at the outer edge.