Skip to content
Juozas Rastenis edited this page Mar 25, 2019 · 1 revision

SVG sprite sheet

Use SVG's from the SVG sprite generated by build system like the following. The #icon-lock is the ID of the current SVG in the sprite. This is based on the name of the original SVG in the assets/icons/-directory. So ´/images/icons/lock.svg` are referenced like this:

<svg class="icon icon-lock">
    <use
        xmlns:xlink="http://www.w3.org/1999/xlink"
        xlink:href="/dist/icons/icons.svg#icon-lock"
    ></use>
</svg>
Clone this wiki locally