CampaignMorph

CSS Gradient Generator

100% Free · Client-Side

Design linear, radial, and conic CSS gradients. Copy code easily and save your favorite gradient presets.

90°

#4F46E50%
#EC4899100%
background: -webkit-linear-gradient( 90deg, #4F46E5 0%, #EC4899 100% ); background: -moz-linear-gradient( 90deg, #4F46E5 0%, #EC4899 100% ); background: linear-gradient( 90deg, #4F46E5 0%, #EC4899 100% );

What is the CSS Gradient Generator?

The CSS Gradient Generator is a visual design tool for creating linear, radial, and conic CSS gradients. Adjust color stops, angles, and positions with a live preview and get ready-to-paste CSS code instantly. Save your favorite gradients locally in the browser for future use.

Gradient Types

Linear Gradient

Colors transition in a straight line at any angle. The most common type, perfect for backgrounds and buttons.

Radial Gradient

Colors radiate from a center point outward. Great for spotlight effects, glowing buttons, and circular elements.

Conic Gradient

Colors rotate around a center point like a color wheel. Useful for pie charts, loading spinners, and artistic backgrounds.

Common Use Cases

  • Create gradient backgrounds for hero sections, cards, and buttons
  • Design gradient text effects using background-clip: text
  • Generate pie chart visualizations using conic gradients
  • Create glassmorphism effects with subtle transparency gradients
  • Design loading skeletons with animated repeating gradients
  • Build gradient borders using border-image

Frequently Asked Questions

1. What does the 'Repeating' option do?

Enabling 'Repeating' creates a striped or tiled pattern across the element. It uses the repeating-linear-gradient, repeating-radial-gradient, or repeating-conic-gradient CSS functions, which repeat the color stops indefinitely.

2. How do I use the generated CSS in my project?

Simply copy the generated code and paste it as a background or background-image property in your CSS file. For example: .hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }.

3. Where are my 'Saved Favorites' stored?

Your favorite gradients are stored 100% locally in your browser's localStorage. They are never sent to a server and will persist as long as you use the same browser and don't clear your site data.

4. What is the difference between Linear and Conic gradients?

A Linear gradient transitions colors in a straight line at a specific angle. A Conic gradient transitions colors in a circular motion around a center point, creating a 'pie chart' or 'loading wheel' effect.

5. Can I use gradients for text effects?

Yes! You can apply a gradient to text by using background-clip: text; and -webkit-text-fill-color: transparent;. This makes the background gradient visible through the text characters.

Master Your Brand Design