Runs/gradient · sample · Haiku 4.5/017
gradient · sample · Haiku 4.5 · trial 017 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: 300px;
height: 200px;
}
```
This creates a diagonal linear gradient from purple-blue to purple. Here are some variations:
**Radial gradient:**
```css
background: radial-gradient(circle, #ffff00 0%, #ff0000 100%);
```
**Horizontal gradient:**
```css
background: linear-gradient(to right, #ff6b6b, #ffd93d, #6bcf7f);
```
**Conic gradient (circular):**
```css
background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
```
The basic syntax is `linear-gradient(angle_or_direction, color1 position%, color2 position%)`. You can add as many color stops as you want, and angles range from 0deg to 360deg (or use keywords like `to right`, `to bottom`, etc.).