ATSvg

Using SVG icons in Figma, Sketch and Illustrator

Search intent: Workflow

Home › SVG guides › Using SVG icons in Figma, Sketch and Illustrator

Going from an SVG file into a design file, the problem is rarely the import itself — it is the invisible distortion after import: stray groups, expanded strokes, a lost viewBox, dimensions silently converted to pixels. Do the three cleanup steps below and the handoff to engineering stops bouncing back.

Contents

Import and clean up

After dragging the SVG into Figma or Sketch, check for nested groups and hidden layers and delete them. Then confirm the stroke is still an editable stroke — some exports outline strokes into filled shapes, after which you can no longer change the weight. Finally align the frame to a 24×24 grid or your own, so the icon does not carry a fractional offset.

Make a component instead of copying layers

Convert the cleaned icon into a Component or Symbol and name it by category / name / state — nav/close/24, for example. Recolour through component variants or colour styles; do not hand-edit fills inside each instance, because that is exactly where style drift starts.

What to hand to engineering

Give the already-optimised SVG file rather than re-exporting from the design file — a second export usually brings redundant nodes back. Include three things alongside it: display size, stroke width and colour variable. Once engineering wires it up with currentColor or CSS variables, theme switching no longer requires a new asset request.

Notes specific to Illustrator

Illustrator tends to embed large amounts of editing data and clipping masks when saving SVG. Before export use Save As → SVG and turn off “Preserve Illustrator Editing Capabilities”, or run the result through an SVG optimiser afterwards. Convert text to outlines so the target machine does not need the font.

Naming and handoff so nobody has to guess

Component naming directly affects delivery speed. Use four segments — category / name / size / state, such as nav / close / 24 / default — and avoid names like “close 2” or “final version” that carry no inferable meaning. Delete unused variants, legacy layers and comments before export. On handoff attach a short list: which sizes are used, which variable each colour maps to, whether a dark variant exists. Engineering can then integrate without asking one question per icon.

FAQ

The imported icon has a white background behind it — why?The file probably contains a white rectangle or a clipping mask. Delete that layer and re-export.
It looks fine in the design file but is 1px off on the web.Check for fractional coordinates on the frame, a modified viewBox, or a centred stroke that lands the edge on a half-pixel boundary.

← All SVG guides · Licence and usage FAQ →

Related assets · 12 assets

Keep reading

All guides