CSS mesh gradients without images
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.
Tag
15 articles
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.
One box-shadow looks flat. Layering several soft shadows, each larger and fainter than the last, gives depth that looks like real light. Here is how, with an elevation scale you can reuse.
How backdrop-filter creates frosted glass in CSS, the settings that look right, and the support, contrast and performance details most snippets leave out.
How clamp() makes text scale smoothly between screen sizes, how to work out the middle value, and the zoom rule that keeps fluid typography accessible.
Why Refract exists, what the free tools do, and why your files never leave your browser.
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