How to optimise SVG files without breaking them
Run SVGs through SVGO, keep the viewBox, round to two or three decimal places and compare before and after. Here is what optimisation removes and what can break.
The Refract Journal
Practical articles on CSS, interface design and image optimisation, written for people who build websites.
Run SVGs through SVGO, keep the viewBox, round to two or three decimal places and compare before and after. Here is what optimisation removes and what can break.
Resize to the displayed size, save as WebP or AVIF at 75–85% quality, and strip the metadata. Here is how to compress website images with no visible loss.
The right Open Graph image size is 1200 × 630 pixels. Here are the exact requirements for Facebook, X and LinkedIn, the tags you need, and how to fix previews that won’t update.
Meet the new colour contrast checker and palette generator, the SVG optimiser, and the meta tag generator with social previews.
How backdrop-filter creates frosted glass in CSS, the settings that look right, and the support, contrast and performance details most snippets leave out.
A practical comparison of WebP, AVIF and JPEG for websites: which to use by default, where AVIF is worth the extra effort, and how to serve both with a fallback.
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.
The short list of favicon sizes a modern website needs, what each one is for, the HTML to add, and what Google requires to show your icon in search.
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