Skip to content
MewixMewix

Gradient text

Type your headline, pick two colours and a gradient angle, and copy linear-gradient plus background-clip:text rules.

Updated by the Mewix team

background-clip:text in practice

Gradient fills on letters need a linear gradient background, then background-clip: text (plus -webkit-background-clip: text) and color: transparent so the gradient shows through the glyph shapes. Font size slider spans 20–56px; angle spans 0–360°; two hex stops define the gradient line copied into CSS.

Fallback when clip is unsupported

Browsers that ignore background-clip on text may show invisible letters because colour is transparent. Keep a solid fallback colour outside the gradient block or use @supports to gate the effect. For full page backgrounds rather than type, the CSS gradient generator exports background rules without the clip trick.

Can I add more than two colour stops?

This playground outputs two-stop linear gradients only. Add extra colour stops manually in the copied linear-gradient() line after you paste it into your project.