CSS Gradient Generator โ Linear, Radial & Conic
Build beautiful CSS gradients visually. Pick colours, adjust stops, copy CSS or Tailwind classes.
background: #667eea; background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
bg-gradient-to-br from-[#667eea] to-[#764ba2]
Gradient Presets
How to create a CSS gradient
- 1Choose gradient type
Select linear, radial, or conic gradient. Each type has its own direction and shape controls. Start with a preset or build from scratch.
- 2Add and adjust colour stops
Click the colour swatches to pick colours. Add up to 10 stops and drag their position percentages. The preview updates in real time.
- 3Copy the CSS
Copy the generated CSS with vendor prefixes or the Tailwind classes. Use the full-screen preview to check the gradient at scale.
Why use CSS gradients?
Replace image backgrounds
CSS gradients render at any resolution without extra HTTP requests. A gradient background loads instantly while an image background adds kilobytes to your page weight and requires a separate network request.
Responsive by default
Gradients scale to any screen size automatically. Unlike background images that need multiple sizes for different breakpoints, a CSS gradient looks sharp on mobile, tablet, desktop, and retina displays.
Better performance
Gradients are rendered by the browser's GPU and take zero bandwidth. Replacing image backgrounds with CSS gradients improves Core Web Vitals, particularly Largest Contentful Paint and Total Blocking Time.
Get GEO & AEO tips every week
The Layman SEO newsletter. Plain English updates on what is changing in search - SEO, AEO, and GEO - and what to do about it. One email a week. Unsubscribe any time.
No spam. No paywall content. Unsubscribe with one click.