👁️Color Gradient
Also known as Gradient (Design), Gradient Fill, Color Blend
A smooth blend from one color to another, with no hard edge.
Think of it like
It is like a sunset. The sky slides from orange to purple with no hard line.
Example
A music app fills its back screen with a gradient. It goes from deep blue at the top to pink at the bottom.
Why it matters
A gradient adds depth and life to a flat surface without a single picture.
Definition
Example code
css
background: linear-gradient(to bottom, #1e3a8a, #db2777);Common mistake
Key takeaways
- 1Linear or radial. Along a line, or out from a point.
- 2Color stops. The colors it passes through.
- 3Mind the text. Keep contrast across the whole blend.