Use gradient text for hero headlines, section titles, and logos — anywhere a solid color feels flat and the text is large enough to show the gradient. Avoid at small sizes (under 24px); the gradient disappears and the text looks muddy. Don't use for body copy. Alternative: figma plugins offer similar gradient text but require export to image; CSS gradient text scales natively and remains selectable.
.hero-title {
background: linear-gradient(135deg, #ef4444, #a855f7, #3b82f6);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
/* Animated rainbow text */
@keyframes rainbow {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.animated-gradient-text {
background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7);
background-size: 200% 200%;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: rainbow 3s ease infinite;
}Last updated: 2026-04-23