Is there a way to export an .svg sprite directly from Illustrator, with a separate viewBox for each element?
I am only able get one viewBox for the whole set of icons, even when each of them is on its own artboard.
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
I seem to have found the solution - each sprite element must be converted to a symbol. That creates a viewBox for each symbol when exporting the svg.
<symbol id="badminton" data-name="badminton" viewBox="0 0 33.84 40.41">