Developer

CSS Gradient Builder

Build linear and radial gradients visually. Drag stops, copy CSS in one click.

Type
Angle — 135°
Color Stops
⠿
%
⠿
%
Preview
Generated CSS
background: linear-gradient(135deg, #e63329 0%, #1a1a1a 100%);

CSS is generated locally in your browser.

Color gradient bar from dark to light blue with two color stop handles

How to use

  1. Choose LINEAR or RADIAL. For a linear gradient, set the angle.
  2. Edit the color stops: pick each color and its position (0–100%), use ADD STOP for more colors, and drag stops in the list to reorder them. The preview updates as you go.
  3. Click Copy CSS and paste the line into your stylesheet.

CSS gradients in one line

A CSS gradient is an image the browser draws from a few colors, so it needs no file, stays sharp at any size and loads instantly. This builder writes the line for you, for example: background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);

Linear and radial gradients without vendor prefixes work in every current browser, so the copied CSS can be used as is.

Angles and stops

In a linear gradient the angle sets the direction the colors flow toward:

AngleDirection
0degBottom to top
90degLeft to right
180degTop to bottom (the default)
135degTop left to bottom right, a popular diagonal

Ready-made gradients to start from

Paste one of these into the builder's stops, or straight into your CSS, and adjust from there:

StyleCSSGood for
Sunsetlinear-gradient(135deg, #f97316 0%, #ec4899 100%)Hero banners, call-to-action buttons
Oceanlinear-gradient(180deg, #0ea5e9 0%, #1e3a8a 100%)Headers and app backgrounds
Mintlinear-gradient(90deg, #a7f3d0 0%, #14b8a6 100%)Soft cards, health and finance sites
Spotlightradial-gradient(circle, #ffffff 0%, #e5e7eb 60%, #9ca3af 100%)Product photos on a plain backdrop
Hard stripelinear-gradient(90deg, #111827 50%, #f59e0b 50%)Split backgrounds with a sharp edge

Tips for good-looking gradients

Two or three colors close on the color wheel, such as blue to purple or orange to pink, look smooth; complementary colors such as red and green can turn muddy in the middle. Placing two stops at the same position makes a hard edge instead of a blend, useful for stripes. A radial gradient from a light center to a darker edge adds depth to a hero section or a button.

Keep text readable: put text over the darker part, or add a semi-transparent overlay, and check the pair with the Contrast Checker.

Frequently asked questions

Should I use background or background-image?

Either works. background-image keeps any background color you set as a fallback; the background shorthand replaces it.

Does it make conic or repeating gradients?

No. It builds linear and radial gradients, which cover most backgrounds and buttons.

Can I use the CSS in Tailwind or React?

Yes. Paste it into an inline style, a CSS module, or a Tailwind arbitrary value such as bg-[linear-gradient(90deg,#3b82f6,#9333ea)].

Is anything uploaded?

No. The CSS is generated in your browser.

Last updated:

Found a problem or have an idea? Report a problem

Share

You might also like