Gradient Text Generator

Fill text with a linear gradient and copy the CSS.


The gradient is a background on the text. background-clip: text and a transparent fill let the background show through the glyphs. A solid color is included first so older browsers still show readable text.

Frequently asked questions

Why is the fill transparent?

If the text color is opaque it covers the gradient. The transparent color is what makes the clip visible.

Does this work on a button?

Yes, on the button label. The button background is separate from the text background.