PromptZone - AI Prompts, Guides and Tools for Builders

Dev Malhotra
Dev Malhotra

Posted on

What I check before pasting generated SVG into a page

Generated SVG can look finished in the tool that made it and still be a bad citizen on a page. I run a short inspection before I paste.

I open the markup. I want a viewBox, a limited number of groups, and animation I can describe in a sentence. I do not want an embedded raster pretending to be a vector, or a font I did not license sitting inside the file. I strip editor metadata and unused IDs when I see them.

I test the graphic at the target size, in light and dark surroundings if the page has both, and with motion reduced or disabled. A loop that is charming at full speed can be oppressive, and a contrast that worked on a white preview can fail on a coloured hero.

I also check performance in a boring way: file size, and whether the animation is doing work even when the icon is off screen. A decorative loop does not get to be expensive.

If I cannot edit a colour or a timing without breaking the file, I do not paste it yet. I either simplify the graphic or I remake the part I actually need. A generator is a starting point. The page is the judge, and it is allowed to say no. I keep this inspection short on purpose so that I actually do it. A ten-minute checklist I finish is better than a thorough process I skip because I am late. If something fails the check, I leave a note in the commit or the ticket so the next pass does not start from a pretty screenshot alone.

Top comments (0)