Skip to content

Instantly share code, notes, and snippets.

@miclgael
Last active March 7, 2022 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miclgael/26b144f528980c3c818859f6055acffa to your computer and use it in GitHub Desktop.
Save miclgael/26b144f528980c3c818859f6055acffa to your computer and use it in GitHub Desktop.
SVG Symbol Definitions
<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="icon-home" viewBox="0 0 32 32">
<path d="M32 18.451l-16-12.42-16 12.42v-5.064l16-12.42 16 12.42zM28 18v12h-8v-8h-8v8h-8v-12l12-9z"></path>
</symbol>
<!-- etc. -->
<symbol>
<path></path>
</symbol>
<!-- etc. -->
<symbol>
<path></path>
</symbol>
</defs>
</svg>
<svg class="icon icon-home">
<use xlink:href="#icon-home"></use>
</svg>
.icon {
display: inline-block;
width: 1em;
height: 1em;
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
}
@miclgael
Copy link
Author

miclgael commented Mar 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment