Gradient syntax
linear-gradient(90deg, #e11d48, #2563eb) radial-gradient(circle, #e11d48, #2563eb) conic-gradient(from 0deg, #e11d48, #f59e0b, #2563eb)
Angles: 0deg points up, 90deg to the right, 180deg down. Add positions to control where colors change: linear-gradient(90deg, red 0%, red 50%, blue 50%) gives a hard edge.
Avoiding muddy middles
Gradients between complementary colors (red → green, blue → orange) pass through gray in sRGB. Add a bright middle color, or in modern browsers interpolate in OKLCH: linear-gradient(in oklch 90deg, …).