What it is
A CSS gradient is an image generated from a smooth transition between two or more colors, defined with functions like linear-gradient(), radial-gradient(), and conic-gradient() instead of an image file.
When to use it
Reach for this when designing a button, hero background, or badge that needs a smooth color transition, and you want to see the result live before copying the CSS into your project.
Gotchas & limits
Gradients are painted as background images, so they don't affect text color or layout on their own; combining a gradient with a solid fallback color helps older browsers or slow connections degrade gracefully.