Runs/gradient · sample · Haiku 4.5/032
gradient · sample · Haiku 4.5 · trial 032 of 100
the answer
#667eea #764ba2
What the model said
Here's a simple CSS gradient example:
```css
.gradient-box {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
width: 200px;
height: 200px;
}
```
This creates a diagonal gradient from purple-blue to purple. Here are some other variations:
**Horizontal gradient:**
```css
background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
```
**Vertical gradient:**
```css
background: linear-gradient(180deg, #ffd89b, #19547b);
```
**Radial gradient:**
```css
background: radial-gradient(circle, #ff6b6b 0%, #1e3c72 100%);
```
**Multi-color gradient:**
```css
background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta);
```
The basic syntax is `linear-gradient(direction, color-stop1, color-stop2, ...)` where direction can be an angle (0deg to 360deg) or keywords like `to right`, `to bottom`, etc.