Runs/gradient · sample · Haiku 4.5/025
gradient · sample · Haiku 4.5 · trial 025 of 100
the answer
#667eea #764ba2
What the model said
Here's a simple CSS gradient example:
```css
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
```
This creates a linear gradient at a 135° angle from purple-blue to purple.
Here are a few other common variations:
**Horizontal gradient:**
```css
background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
```
**Radial gradient:**
```css
background: radial-gradient(circle, #667eea 0%, #764ba2 100%);
```
**Multi-color gradient:**
```css
background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff);
```
**Applied to an element:**
```css
.gradient-box {
width: 100%;
height: 300px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
```
The `linear-gradient()` function takes a direction (angle or keyword like `to right`, `to bottom`, etc.) followed by color stops. You can add as many colors as you want and specify their positions with percentages.