Creating Web Icons with SVG
1h 45mIntermediate2016-08-04
Authors

Morten Rand-Hendriksen
Senior Staff Instructor, Speaker, Web Designer, and Software Developer
Course details
As designers and developers of the web, we want graphics to look sharp, but we need to keep file sizes down for performance. How do you get the best of both worlds? There is pretty much only one way to go: SVG.
SVG is an XML-based method for instructing the browser to draw scalable vector graphics based on defined shapes and coordinates. The challenge with SVGs is they are not like other graphic files: Rather than a grid of pixels, they are code instructions interpreted by the browser on the fly. This poses some unique challenges and unique opportunities when it comes to implementation. In this course, you'll learn various methods to deploy SVG icons in webpages, each with its own use cases, benefits, and drawbacks. Morten Rand-Hendriksen shows how to insert individual SVG images, add SVGs as inline elements and SVG sprites via the command line, and automate SVGs with Grunticon. Plus, get tips on making your graphics backward-compatible and accessible, and using SVG icons in WordPress.
Learning objectives
SVG vs. icon fonts
Getting existing SVG icons
Creating your own icons
Adding individual SVG icons to webpages
Adding SVG as an inline element or background image
Using external and inline SVG sprites
Automating SVG generation with Grunticon
Using SVG icons in WordPress
SVG is an XML-based method for instructing the browser to draw scalable vector graphics based on defined shapes and coordinates. The challenge with SVGs is they are not like other graphic files: Rather than a grid of pixels, they are code instructions interpreted by the browser on the fly. This poses some unique challenges and unique opportunities when it comes to implementation. In this course, you'll learn various methods to deploy SVG icons in webpages, each with its own use cases, benefits, and drawbacks. Morten Rand-Hendriksen shows how to insert individual SVG images, add SVGs as inline elements and SVG sprites via the command line, and automate SVGs with Grunticon. Plus, get tips on making your graphics backward-compatible and accessible, and using SVG icons in WordPress.
Learning objectives
SVG vs. icon fonts
Getting existing SVG icons
Creating your own icons
Adding individual SVG icons to webpages
Adding SVG as an inline element or background image
Using external and inline SVG sprites
Automating SVG generation with Grunticon
Using SVG icons in WordPress
Skills covered
HTMLWeb GraphicsCSSWeb DesignProjectProgramming LanguagesOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Welcome
- 02 - What to know before watching this course
1. The Case For SVG
- 03 - Difference between SVG and icon fonts
- 04 - What we'll cover in this course
2. Create and Optimize SVG Icons
- 05 - Where to get existing SVG icons
- 06 - Creating your own icons
- 07 - Optimize SVG with SVGOMG and SVGO
3. Add Individual SVGs
- 08 - Overview of the methods
- 09 - Add SVG as a regular image
- 10 - Add backwards compatibility with SVGeezy
- 11 - Add SVG as an inline element
- 12 - Add backwards compatibility and more with SVGInjector
- 13 - Add SVG as a background image
- 14 - Make SVG background images backward compatible
- 15 - A word on SVG accessibility
4. External and Inline SVG Sprites
- 16 - Overview of the method
- 17 - Create a manual SVG sprite
- 18 - Display SVGs from an inline sprite
- 19 - Create an optimized SVG sprite with SVGO and spritesh
- 20 - Display SVGs from an external sprite
- 21 - Patch browser support issues
5. Automate Your SVG Process with Grunticon
- 22 - Overview of this method
- 23 - Generate cross-browser icons with Grunticon
- 24 - Display Grunticon SVG icons in HTML documents
- 25 - Generate cross-browser icons in the command line using Grunticon
- 26 - Display Grunticon SVG icons in HTML documents
6. SVG in WordPress Themes
- 27 - Add an inline SVG with SVGInjector
- 28 - Create a custom social media menu with Grunticon
Conclusion
- 29 - Thank you