CSS Gradient Generator
Design a linear, radial, or conic gradient visually and copy the CSS, Tailwind, or SCSS code instantly.
Color Stops
Presets
About this tool
What this tool does
This is a visual CSS gradient maker: pick a gradient type, drag color stops around, and watch the preview and the generated code update together. No more hand-tweaking linear-gradient() syntax and refreshing a browser tab to see if the angle looks right — you see it live, and you can add as many color stops as the design needs instead of being capped at two or three.
How to use it
- Choose Linear, Radial, or Conic as the gradient type.
- For linear and conic gradients, drag the angle slider to set the direction. For radial gradients, pick a shape (circle or ellipse) and a starting position.
- Add, remove, or drag any color stop's position slider — the preview updates instantly.
- Turn on Repeating gradient to tile the pattern, or Add grain/noise texture to break up harsh color banding on large backgrounds, a trick a lot of hero-section gradients use.
- Copy the ready-to-use CSS, a Tailwind arbitrary-value class, or an SCSS variable straight from the output boxes.
- Or skip the manual work entirely and click one of the ready-made presets (Ocean, Sunset, Rainbow Wheel, and more) as a starting point.
Real-world use cases
- Building a hero section background or call-to-action button without opening a design tool.
- Generating a conic gradient for a custom progress ring, pie-chart segment, or color wheel picker.
- Creating a repeating diagonal-stripe pattern for a banner or card background.
- Matching a gradient from a Figma or Dribbble mockup by eye, then exporting clean CSS for production.
Frequently asked questions
What's the difference between linear, radial, and conic gradients?
A linear gradient blends colors along a straight line at a chosen angle. A radial gradient blends outward from a center point in a circle or ellipse. A conic gradient sweeps colors around a center point like a color wheel or pie chart — useful for things progress rings and dials can't get from the other two types.
Can I use more than two colors in one gradient?
Yes. Click "Add Color Stop" as many times as you need and drag each stop's position slider to place it anywhere from 0% to 100%.
How do I make a gradient repeat/tile?
Check the "Repeating gradient" box. This switches the output to repeating-linear-gradient() (or the radial/conic equivalent), which tiles your color stops across the whole element instead of stretching them once.
Why does my gradient show visible color bands?
Large, smooth gradients (especially dark-to-dark ones) can show visible stepping on some screens, called banding. Turning on "Add grain/noise texture" overlays a subtle noise layer that breaks up the banding without being visually distracting.
Does this work with Tailwind CSS?
Yes — the Tailwind output box gives you a ready-to-paste arbitrary-value class like bg-[linear-gradient(...)] you can drop straight into your markup.
