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
4 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.
How linear, radial and conic gradients work in CSS, with copy-ready code for stripes, pie charts, text overlays and gradient borders, and how to stop blends turning muddy.
CSS has no mesh gradient function, but layered radial gradients get you the same soft, flowing look in a few hundred bytes. Here is how they work, how to pick colours, and how to animate them.
Grain gives flat gradients a tactile, printed feel and hides colour banding. Here is how to add it with an SVG feTurbulence filter, a pseudo-element and the right blend mode.
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