Decide what the receiving format needs
A website can keep editable text and apply a gradient through CSS. An exported image preserves the appearance as artwork. If you are looking at a color font, check the actual format separately. The color font guide explains why color information can also be stored inside a font.
Clip the gradient only when the effect is supported
Start with ordinary readable text color. In a supported style rule, apply a linear-gradient background, set background-clip to text and make the foreground transparent. MDN recommends checking contrast and supplying a fallback. Keep a solid background color in the clipped treatment if the design depends on an image.
Proof both ends of the transition
Compare the darkest and lightest parts of the gradient against the actual surface. Check the same headline with the effect turned off and at its smallest intended size. Use the HTML text color guide for a solid foreground and the homepage text preview for a separate copyable label.
Your questions, answered.
Does gradient text require a special font file?
A CSS fill can be applied to ordinary live text. Some color-font formats store color information separately.
What if the gradient is unavailable?
Keep an ordinary readable color as a fallback, and proof that version in the actual layout.
Sources & background
Sources supporting this page’s explanations. Practical examples are our editorial suggestions.