Create Your Gradient

Color Stops

Gradient Presets

Purple Dream
Pink Sunset
Ocean Blue
Fresh Mint
Warm Flame
Night Fade
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);

Last updated

Popular Gradient Presets

All gradient code is generated in your browser and ready to paste directly into your CSS. No uploads, no accounts, no limits.

Examples

Example 1: Linear Gradient — Hero Section Background

A diagonal gradient for a full-page hero section background.

/* Generated CSS */
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

/* Usage */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* With fallback for very old browsers */
.hero {
  background-color: #667eea; /* fallback */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

Example 2: Linear Gradient — Button Styles

Gradient buttons add depth and a modern feel to CTAs.

/* Primary button gradient */
.btn-primary {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Success button gradient */
.btn-success {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

/* Warning button gradient */
.btn-warning {
  background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
  color: #333;
}

Example 3: Radial Gradient — Spotlight Effect

Radial gradients create spotlight and glow effects.

/* Spotlight background */
.spotlight {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #e0e0e0 60%, #bdbdbd 100%);
}

/* Glow effect on a card */
.card-glow {
  background: radial-gradient(ellipse at top left, rgba(102, 126, 234, 0.3) 0%, transparent 60%);
}

/* Dark background with center highlight */
.dark-spotlight {
  background: radial-gradient(circle at center, #2c3e50 0%, #000000 100%);
}

Frequently Asked Questions

Select gradient type (linear or radial), choose colors, adjust angle or position, and copy the generated CSS code. The preview updates in real-time.

Linear gradients transition colors in a straight line at a specified angle. Radial gradients transition colors from a center point outward in a circular or elliptical pattern.

Yes! You can add unlimited color stops to create complex multi-color gradients. Each color stop can be positioned at any percentage along the gradient.