A talk for the Vienna Webclerks meetup. Workflows for simple and effective icon systems using SVG, the symbol / use method and Grunticon.
SVG Icon SystemsMax Böck · @mxbck · mxb.at
View Slide
SVG FTW*● Semantics● Accessibility● Better Rendering● Styling & Animation● Customization● N✪ weird Bugscss-tricks.com/icon-fonts-vs-svg/github.com/blog/2112-delivering-octicons-with-svgpoststatus.com/contributing-to-twenty-seventeen-theme/sarasoueidan.com/blog/icon-fonts-to-svgianfeather.co.uk/ten-reasons-we-switched-from-an-icon-font-to-svgfoxland.fi/switch-away-icon-fonts-svg/www.lukew.com/ff/entry.asp?1859mir.aculo.us/2014/10/31/icon-fonts-vs-inline-svg/twitter.com/jensimmons/status/719378653100912640witter.com/chriscoyier/status/656827701706256384*
Icon Fonts SVG Icons
Commercial Icon SetsStreamline5000+ Iconswww.streamlineicons.com
Free & Open SourceGoogle Material Designmaterial.io/iconsFont Awesome SVGgithub.com/encharm/Font-Awesome-SVG-PNGIconicuseiconic.com/openThe Noun Projectthenounproject.com
Pro Tip: SVGsus get it?
Get it on the page
Symbol / Use
Browser Support
IE 9-11 POLYFILL:svgxuse2KB minified, https://github.com/Keyamoon/svgxuse
xlmns:xlink="http://www.w3.org/1999/xlink"xlink:href="assets/icons/sprite.svg#mario">Icon Markup
function Icon({ name }){const iconClass = [‘icon’, `icon--${name}`].join(‘ ‘);const iconPath = `assets/icons/sprite.svg#${name}`;return ()}React (simplified)
Demo Time!
Thank You!@mxbck