Skip to main content
InstantTools
Forge · Gradients

CSS Gradient Generator

Multi-stop linear and radial gradients. Drag positions, pick colors, paste the CSS where you need it.

How to use CSS Gradient Generator

  1. Choose Linear or Radial at the top of the settings panel.
  2. For linear, drag the Angle slider anywhere from 0° to 360°. For radial, pick Ellipse or Circle under Shape.
  3. In Stops, click a swatch to choose its color and drag its slider to place it from 0% to 100%. Use + Add stop for more colors and × to remove one. Two stops always remain.
  4. Or start from a preset: Mint dawn, Aurora, or Ember.
  5. Press Copy CSS to copy the full background: declaration and paste it into your stylesheet.
01 · Real-world fits

Common use cases

  • A hero section background that runs from your brand color to a darker shade at 135°
  • A soft radial glow behind a product image, using a circle that fades into the page background color
  • A hard-edged split or stripes, made by putting two stops at the same position
  • Button and badge fills with a two-color brand gradient in plain CSS, no image file
  • A fade to transparent for text over a photo, by typing rgba(0,0,0,0.7) into a stop's text box
  • Trying several background directions for a landing page before opening a design tool
02 · The honest pitch

Why CSS Gradient Generator?

Each stop is one row: a color picker, a position slider, and a text box that takes any CSS color, including rgba() for transparency. The output is a complete background: declaration with the stops sorted by position, so what you see in the preview is what you paste. The type, angle, and first two colors are kept in the page URL, so a link reopens the same starting point.

03 · Edge cases

Frequently asked questions

0deg points up, toward the top of the box. Angles turn clockwise: 90deg points right, 180deg down, 270deg left. The default 135deg runs from the top-left toward the bottom-right. Keywords like to right equal 90deg. A corner keyword such as to bottom right is not always 135deg: it aims at the actual corner, so the angle changes with the box's width and height.