Scale SVG in symbols or groups & Target with CSS

I looked into this a bit, and found this tool to cleanup SVGs: https://jakearchibald.github.io/svgomg/

Toggle ‘Prefer Viewbox to Width/Height’ to ensure your SVG can scale correctly:

svttest.zip (14.2 KB)

I recommend requesting this option from Sketch’s export – seems useful to retain ratio, but not force a size.

1 Like