What to put in a prompt so the output is editable geometry rather than a picture of it: naming the style, bounding the path count, and stating the background.
- Author
- SVG Maker AI
- Published
- June 24, 2026
- Reading time
- 2 min read
Journal
Tutorials and reference material on vector geometry, tracing, and keeping SVG files small enough to read in a diff.
What to put in a prompt so the output is editable geometry rather than a picture of it: naming the style, bounding the path count, and stating the background.
The viewport is the space on the page, the viewBox is the window onto the drawing. How the four numbers pan and zoom, what preserveAspectRatio decides, and the six ways scaling goes wrong.
Linear and radial gradients in SVG: where the stops go, how userSpaceOnUse differs from objectBoundingBox, and why the definition belongs in defs.
Animate SVG the three ways the browser supports: CSS keyframes, SMIL elements inside the file, and the Web Animations API. Includes the draw-on effect, the transform-box trap, and what each property costs to render.
Why icons blur on some screens and not others: whole-number anchors on a 24px grid, one stroke weight across a set, and alignment that survives scaling.
How classic image tracing works — colour quantisation, edge detection and bezier fitting with Potrace — and where an edge tracer beats a redraw.
feGaussianBlur, feDropShadow and the filter primitives worth knowing, plus why filters render differently across engines and what that costs you.
clipPath cuts with a hard edge; mask fades with luminance. Which to reach for, how they compose, and the cases where both are the wrong answer.
Why a CSS rule beats a fill attribute, what currentColor and custom properties each solve, how to reach into <use> content, and the mask trick for SVG used as a background image.
Decorative, informative or interactive — the three cases need different markup. role=img and title, when aria-labelledby is required, why icons in buttons should be silent, and contrast rules for graphics.
Live text, outlines, or an embedded font — what each costs. Why an @import inside an SVG fails as an image, how counters break when letters are split, and what outlining takes away.
Smaller files and cheaper rendering are two different problems. Delivery method, precision limits, server compression, and why node count — not bytes — is what makes a page stutter.