CSS Gradient Generator

Build beautiful linear and radial CSS gradients visually.

Live gradient previewLinear, radial, and conicCopy-ready CSSUpdated May 2026

CSS gradient generator

Add two or more color stops, choose the gradient type, preview instantly, then copy the generated CSS.

deg

Direction presets

Color stops

Add two or more color stops to create a gradient.

%
%

Preset gradients

px
px

Live preview

Current preset: Custom

linear-gradient

2 color stops

Gradient type

linear-gradient

Direction / position

90deg

Generated CSS

Copy-ready gradient CSS.

background: linear-gradient(90deg, #2563EB 0%, #A855F7 100%);

Local CSS generation

Gradient values are processed instantly in the browser with no backend calls.

Preview-first workflow

Edit color stops, angle, center position, and repeating mode with live preview.

Copy-ready output

Generate background, background-image, inline style, or Tailwind-style snippets.

Dynamic Gradient Insights

This linear gradient uses a 90deg angle.
Your gradient has 2 color stops.
Repeating mode is off, so the gradient spans the whole preview.
Check text contrast before placing readable text over this gradient.

How CSS Gradients Work

Generated image

CSS gradients are images generated by the browser.

Backgrounds

Gradients are commonly used as background or background-image values.

Color stops

Color stops define where colors appear.

Linear

Linear gradients follow a direction or angle.

Radial

Radial gradients spread from a center point.

Conic

Conic gradients rotate around a center point.

Linear, Radial, and Conic Gradients Explained

Linear gradients

Move along a straight line, controlled by an angle or direction.

Radial gradients

Spread outward in a circle or ellipse from a selected position.

Conic gradients

Rotate around a center point, useful for wheels and decorative UI.

Repeating gradients

Repeat the color-stop pattern for stripes and patterns.

background

Applies the full background shorthand.

background-image

Applies the gradient as a background image only.

Color Stops, Angles, Positions, and Accessibility Notes

Color stops

Each color stop defines a color and optional position in the gradient.

Angles

Linear and conic gradients can use degrees such as 90deg.

Directions

Keywords like to right can be readable alternatives to angles.

Radial position

The center point controls where a radial gradient begins.

Conic start angle

Conic gradients can start from a chosen angle.

Text contrast

Use a contrast checker before placing important text over gradients.

Common CSS Gradient Examples

background: linear-gradient(90deg, #2563eb 0%, #a855f7 100%);
background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
background: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
background-image: radial-gradient(circle at center, #22c55e 0%, #0f172a 100%);
background: conic-gradient(from 0deg at center, #f97316 0%, #ec4899 50%, #3b82f6 100%);
background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
background: linear-gradient(90deg, #2563eb, #7c3aed);
background: repeating-linear-gradient(45deg, #111827 0%, #111827 10%, #ffffff 10%, #ffffff 20%);

Frontend, UI, and Design-System Use Cases

Hero backgrounds
Buttons
Cards
Banners
Overlays
Badges
App UI backgrounds
Dashboards
Landing pages
Design tokens

Privacy and Local Processing Notes

Local values

Gradient values are processed locally in the browser.

No account

No sign-up or account is required.

No backend storage

Generated CSS is created instantly on the page.

Copy control

Copied CSS stays under your control.

Lightweight prototyping

The tool is intended for CSS prototyping and frontend design.

Deterministic output

Generated CSS remains predictable and easy to copy.

Method Explanation

1. Choose the gradient type.
2. Add or edit color stops.
3. Set stop positions, angle, direction, or center point.
4. Preview the gradient instantly.
5. Generate clean CSS using the selected settings.
6. Copy the CSS into a stylesheet, component, or design system.

Frequently Asked Questions

A CSS gradient generator helps you create linear, radial, conic, or repeating gradients visually, then copy the generated CSS.