Controls
Edit Color Stop
Preview
Presets
Generated CSS
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);Overview
A visual tool to create CSS gradients without writing code. Choose between linear or radial gradients, add multiple color stops, adjust angles and positions, and copy the generated CSS. Perfect for creating modern backgrounds and visual effects.
What is CSS Gradient?
CSS gradients allow you to display smooth transitions between two or more colors. They are a type of image that can be used anywhere an image can be used, but they're created with CSS and exist in the DOM, which means they can be resized and modified on the fly.
Linear vs Radial Gradients
Linear gradients transition colors along a straight line, defined by an angle or direction. They're perfect for backgrounds that need a directional flow.
Radial gradients transition colors radiating from a center point. They can be circular or elliptical and are great for creating spotlight effects or radial designs.
Common Use Cases
- Website backgrounds and hero sections
- Button hover effects and call-to-action elements
- Card backgrounds and UI components
- Text backgrounds with background-clip
- Overlay effects on images
Browser Support
CSS gradients are supported in all modern browsers including Chrome, Firefox, Safari, and Edge. The syntax has been standardized and doesn't require vendor prefixes for current browser versions.
Tips and Best Practices
- Use gradients sparingly to avoid overwhelming your design
- Consider accessibility - ensure text over gradients has sufficient contrast
- Multiple color stops create more complex and interesting gradients
- Combine gradients with background-blend-mode for unique effects
- Test gradients on different screen sizes and devices
