- What is an inline SVG?
- An SVG written directly into the HTML as markup rather than referenced as a file. Because the shapes become part of the document, your stylesheet and scripts can reach them — which is the whole reason to do it, and the whole reason not to when you do not need it.
- Is it better to use SVG or PNG for websites?
- SVG for flat, geometric and interface art; PNG or JPEG for photographs. Measured file sizes and the cases where PNG wins are in our SVG vs PNG guide. SVG vs PNG, measured
- What are the disadvantages of using SVG?
- Six worth knowing: node count rather than file size is the real performance cost; photographs trace badly; live text substitutes fonts silently; SVG can carry script so user-uploaded files need sanitising; filters and blend modes render slightly differently across engines; and design-tool exports arrive bloated. None of these is a reason to avoid it for interface art — they are the cases where it is the wrong tool.
- Where can I download free SVG illustrations?
- unDraw, DrawKit, Lukasz Adam, Icons8 and Flowbite all publish free sets, most under permissive licences. We are a generator rather than a library — nothing here is pre-drawn — so if a ready-made illustration is what you want, start with those. Generation is the better route when you need something specific, or a matching set nobody else is already using.
- Are SVG illustrations always smaller than PNG?
- No. For flat art, usually smaller and sharp at every density; at icon sizes the two are close, and for photographic art SVG is larger. Measured numbers are in the SVG vs PNG guide.
- Should I inline the SVG or use an img tag?
- Inline when you need CSS control, animation or currentColor, and when the file is small enough that adding it to the HTML is cheaper than a request. Use an img tag when the illustration is large, repeated across pages, static, or wants to be lazy-loaded and cached separately. The deciding question is whether anything outside the file needs to reach inside it.
- How do I handle dark mode?
- Reference CSS custom properties or currentColor in the fills, then let your existing theme switch repaint them. One file, both themes, no duplicate asset.
- Do SVG illustrations hurt performance?
- Only through node count. An inline illustration with 900 paths adds 900 DOM elements that layout and paint have to walk. Keep the path count low and optimise before shipping and the cost is negligible.
- Can I make a matching set?
- Yes — keep the style, palette and stroke clauses of your prompt identical and vary only the subject. Then do a consistency pass in the editor so every piece uses the same colour values exactly.
- How do I make one responsive?
- Keep the viewBox, drop width and height, and let CSS size the container. preserveAspectRatio controls how the art fits when the container's ratio does not match the viewBox.