Gradients add visual depth and direction to hero sections, CTA buttons, and cards without requiring any images. Use them when a solid color feels flat or when you want to hint at movement (e.g., a top-to-bottom hero gradient that pulls the eye toward the headline). Avoid gradients on large text or long-form paragraphs — they hurt readability. Alternative: cssgradient.io is the classic gradient editor but lacks conic support and Tailwind output.
/* Sunset hero */
background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
/* Conic for a pie-chart loader */
background: conic-gradient(#10b981 0deg 120deg, #f3f4f6 120deg 360deg);
/* Mesh-style radial */
background:
radial-gradient(at 20% 30%, #3b82f6 0%, transparent 50%),
radial-gradient(at 80% 70%, #a855f7 0%, transparent 50%),
#0f172a;Last updated: 2026-04-23