CSS gradient text, outline and glow effects
Gradient text, outline text, glows, image fills and long shadows, all in CSS. The code for each, how to stop gradient text showing as a solid block, and how to keep it readable.
Tag
3 articles
Gradient text, outline text, glows, image fills and long shadows, all in CSS. The code for each, how to stop gradient text showing as a solid block, and how to keep it readable.
Convert TTF and OTF fonts to WOFF2 and subset them to the characters you use, often cutting a text font to 15–30 KB. Formats, @font-face, unicode-range and the licence check.
One variable font file can replace a whole family. Here is how the weight, width, slant and optical size axes map to CSS, how to declare them in @font-face, and how to set custom axes without the inheritance trap.
Enjoying Refract Tools? ☕️
Refract is a personal project built to make design and development a little easier, with practical, intuitive tools that help you work smarter, without AI doing the work for you.
If you find the tools useful, consider buying me a coffee. Every bit of support helps me keep building, improving, and sharing more free tools with the community.
Thanks for being here! ❤️
Buy me a coffee