Jump to content
You must now use your email address to sign in [click for more info] ×

Export Artboards as SVG Symbols (Sprite/Icon Sheets)


Recommended Posts

This would be a great feature for people using Affinity to create SVG web icons. SVG supports symbols, which are basically re-usable bits of SVG. For example, given this SVG file:

<svg xmlns="http://www.w3.org/2000/svg">
  <symbol id="artboard1" width="10" height="10" viewBox="0 0 10 10">
    <circle cx="5" cy="5" r="5" />
  </symbol>
</svg>

You can use it in a page as follows:

<a class="button">
  <svg class="icon"><use href="/images/icons.svg#artboard1" /></svg>
  <span class="text">A button with a circle.</span>
</a>

Currently, Affinity exports artboards as transparent rects with an id when exporting an entire document. It would be awesome if we could instruct it to export it artboards as SVG symbols (like the first example), effectively turning Affinity Designer into an end-to-end sprite/icon sheet editor.

Bonus feature: an option to export artboard names (outside the symbol element, positioned near it), so that the same sprite/icon sheet can be used for documentation (example: font-awesome).

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.