Use gradient text for a short, clear accent
Gradient text paints a background through the shape of letters. It can give a short heading an accent, but long paragraphs are harder to read when the color changes across every line. Keep a solid text color as the default and apply the effect only when the required clipping feature is supported.
How to use this tool
- Choose two colors that remain visible on the surrounding surface. Avoid a pale stop on a white page.
- Set the angle and compare the preview with your actual heading length and line breaks.
- Copy the gradient and clipping declarations together. Add a solid-color fallback and test high-contrast or forced-color settings.
The effect is introduced inside a feature query so unsupported environments keep the original text color. The forced-color override makes the heading follow the visitor’s chosen high-contrast palette.
Read the reference documentation ↗