Runs/gradient · sample · Haiku 4.5/051
gradient · sample · Haiku 4.5 · trial 051 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 linear gradient from purple-blue to purple. Here are a few other common gradient variations:
**Radial gradient:**
```css
background: radial-gradient(circle, #667eea 0%, #764ba2 100%);
```
**Conic gradient (color wheel):**
```css
background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
```
**Multiple color stops:**
```css
background: linear-gradient(90deg, #ff0000 0%, #ffff00 25%, #00ff00 50%, #00ffff 75%, #0000ff 100%);
```
The basic syntax is `linear-gradient(direction, color1, color2, ...)` where direction can be angles like `135deg`, keywords like `to right`, or omitted for vertical top-to-bottom.