Skip to content
MyDailyTool

CSS Gradient Generator

Build linear and radial CSS gradients visually with a live preview and copy-ready CSS output. Control colors, stops, angle, and shape — no code required.

background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

How to use the css gradient generator

Pick linear or radial, set the angle (linear only), and tweak each color stop. The CSS updates live below.

Formula & explanation

linear-gradient(<angle>deg, <color> <pos>%, …) emits a smooth color transition along the given direction.

Examples

Default: an indigo→purple linear gradient at 135°.

Frequently asked questions

What is a CSS linear gradient?
A linear gradient transitions smoothly between two or more colors along a straight line defined by an angle (e.g. 135deg goes top-left to bottom-right).
How do I add more color stops to a gradient?
Click '+ Add stop' to insert an extra color at any position between 0% and 100%. Each stop can have its own color and position.
Can I use this gradient on text?
Yes — apply it with background: <gradient>; then use -webkit-background-clip: text; -webkit-text-fill-color: transparent; on the text element.
What is the difference between linear-gradient and radial-gradient?
linear-gradient blends colors along a straight line at a given angle, while radial-gradient radiates outward from a center point in a circular or elliptical shape.

Related design & css tools