CSS Gradient Generator 🎨
Create linear and radial gradients visually. Preset gallery. Copy CSS.
Style
Colors
background: linear-gradient(90deg, #818cf8 0%, #c084fc 100%);
Presets
Understanding CSS Gradients
CSS gradients allow you to display smooth transitions between two or more specified colors. By utilizing gradients, you can decrease download times and bandwidth usage since gradients are generated by the browser instead of using image files.
Linear vs. Radial Gradients
- Linear Gradients: These go down/up/left/right/diagonally. To create a linear gradient, you must define at least two color stops. You can also define a starting point and a direction (or an angle). Example:
linear-gradient(90deg, #818cf8, #c084fc). - Radial Gradients: A radial gradient is defined by its center. The colors transition in a circular or elliptical pattern outward from the center. Example:
radial-gradient(circle, #818cf8, #c084fc).
Tips for Creating Beautiful Gradients
- Use analogous colors: Colors that are next to each other on the color wheel often blend beautifully without creating "muddy" mid-tones.
- Mind the color stops: Adjusting where a color begins and ends (e.g., 0% vs. 50%) can drastically change the feel of the gradient.
- Avoid clashing colors: Transitioning between complementary colors (like red to green) can create an unappealing gray tone in the middle. If you must, add a carefully chosen mid-point color to bridge the gap.