Runs/gradient · sample · Haiku 4.5/019
gradient · sample · Haiku 4.5 · trial 019 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 diagonal linear gradient from purple-blue to purple. Here are a few more useful variations: **Linear gradient (horizontal):** ```css background: linear-gradient(90deg, #ff6b6b, #4ecdc4); ``` **Linear gradient (45 degrees):** ```css background: linear-gradient(45deg, #ffecd2 0%, #fcb69f 100%); ``` **Radial gradient (circular):** ```css background: radial-gradient(circle, #667eea, #764ba2); ``` **Multi-color gradient:** ```css background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff); ``` **Gradient with color stops:** ```css background: linear-gradient(to bottom, #ff6b6b 0%, #ffffff 50%, #4ecdc4 100%); ``` The basic syntax is: - `linear-gradient(direction, color1, color2, ...)` for linear gradients - `radial-gradient(shape, color1, color2, ...)` for circular/elliptical gradients You can apply these to any element's `background` or `background-image` property.