DEV Community

Discussion on: Quick CSS trick : Make gradient Text Stroke.

violet profile image

Basically you add a linear gradient on the background and then clip it to the text and make sure the text color is transparent. But I wouldn't use -webkit-text-stroke since it's not a standard css property, although it is indeed supported by all modern browsers.