SlideShare a Scribd company logo
SVG 101
WordCamp DC
Sang-Min Yoon
Front-End Developer
Social Media Icons
1) PNG
2) Sprites
3) Retina
4) Sprites with Retina
5) Icon Font Libraries
6) Custom Icon Fonts
7) SVG
8) SVG Icon Systems
1. PNG
2. Sprites
3. Retina
4. Retina Sprites
5. Icon Font Libraries
6. Custom Icon Fonts
7. SVG (3 different ways)
8. SVG Icon System
SVG
ScalableVector Graphics
Scalable Vector Graphics
• XML based
• Made up of scalable vector shapes and paths.
• Lines, Circles, Polygons, Ellipse, etc.
• Can be used on websites
Applications
Video of exporting on AI and Sketch
Video of exporting on AI and Sketch
Code Editors
Video of editing SVG with Sublime
Why use SVG
• Scales better because it’s vector based
• More performant than jpeg, png, and icon fonts.
• Accessible
• Can be used on the web in 3 different ways.
• Can be styled and animated using CSS and JavaScript
• And so much more!
Vector vs Pixel
When to use SVG
Not for Raster Graphics
(Photographs)
SVG is only used by 

4.0% of all Websites
Source: https://w3techs.com/technologies/details/im-svg/all/all
SVG was around since 2001
Browser Support
PSD
Sketch
Comfortable using PNGs 

and Icon Fonts
Why use SVG
• Scales better because it’s vector based
• More performant than jpeg, png, and icon fonts.
• Accessible
• Can be used for the web in 3 different ways.
• Can be styled and animated using CSS and JavaScript
• And so much more!
No more excuses… 

start using SVGs!
Using SVG on the Web
Optimize - SVGO
• Grunt-svgmin / Gulp-svgo

https://github.com/sindresorhus/grunt-svgmin

https://github.com/corneliusio/gulp-svgo
• svgo-compressor - Sketch plugin

https://github.com/BohemianCoding/svgo-compressor
• SVG-NOW - Illustrator plugin:

https://github.com/davidderaedt/SVG-NOW
• SVGO GUI

https://github.com/svg/svgo-gui
Video of using SVGO GUI
Using SVG on the Web
• As <img> tag in HTML
• Inline in HTML
• As CSS background image
As <img> tag
Inline in HTML
As CSS background image
Adding SVG through
WordPress Editor
• Core Trac Ticket 

https://core.trac.wordpress.org/ticket/24251
• SVG Support plugin

https://wordpress.org/plugins/svg-support/
• Code Snippet (functions.php)

https://css-tricks.com/snippets/wordpress/allow-svg-
through-wordpress-media-uploader/
SVG Icon System
My Workflow
1. Export SVG
2. Upload to IcoMoon for symbol-defs.svg file

https://icomoon.io/
3. PostCSS SVG Plugin (Using Grunt)

https://github.com/jonathantneal/postcss-svg
4. Example usage:

background-image: url('images/icons/symbol-defs.svg#icon-menu');
Grunticon
• https://github.com/filamentgroup/grunticon
• http://www.grumpicon.com/
SVG 101
SVG Sprites Task Runners
• Gulp: gulp-svg-sprite

https://github.com/shakyShane/gulp-svg-sprites
• Grunt: grunt-svg-sprite

https://github.com/jkphl/grunt-svg-sprite
SVG and CSS
SVG and CSS
• SVG presentation attributes are becoming CSS properties
• alignment-baseline, baseline-shift, clip, clip-path, clip-rule, color, color-interpolation, color-
interpolation-filters, color-profile, color-rendering, cursor, direction, display, dominant-
baseline, enable-background, fill, fill-opacity, fill-rule, filter, flood-color, flood-opacity, font-
family, font-size, font-size-adjust, font-stretch, font-style, font-variant, font-weight, glyph-
orientation-horizontal, glyph-orientation-vertical, image-rendering, kerning, letter-spacing,
lighting-color, marker-end, marker-mid, marker-start, mask, opacity, overflow, pointer-events,
shape-rendering, stop-color, stop-opacity, stroke, stroke-dasharray, stroke-dashoffset,
stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor,
text-decoration, text-rendering, unicode-bidi, visibility, word-spacing, writing-mode
• CSS animation is finally starting to make sense in the context of SVG
SVG and CSS
SVG and JavaScript
(Animations)
SVG Animation - GreenSock
• Great Browser Support
• Doesn’t rely on other library
• Support and documentation
• Funded
• Used by 2.5 million sites
• https://greensock.com/svg-tips
So much more with SVG
• Banners
• DataVisuals
• Illustrations
• Infographics
• And More!
Examples
Resources
• Mega List of SVG Information

https://css-tricks.com/mega-list-svg-information/
• SVG on the Web - A Practical Guide

https://svgontheweb.com/
• SVG - Mozilla Developer Network (MDN)

https://developer.mozilla.org/en-US/docs/Web/SVG
Thank You
Email: info@SangMinYoon.com
Twitter: @SMY315

More Related Content

PDF
Switch Away from Icon Fonts to SVG
Exove
 
PPTX
Svghtml5 Meetup
Oswald Campesato
 
PPTX
Introduction to Vue.js DevStaff Meetup 13.02
Paul Bele
 
PDF
Intro to vue.js
TechMagic
 
PDF
Tailwind CSS - KanpurJS
Naveen Kharwar
 
PPTX
SharePoint Wednesday Port Elisabeth - Introduction to AngularJS with the Micr...
Sébastien Levert
 
PDF
Angular2 + AWS Lambdaでサーバサイドレンダリングしてみた
暁 三宅
 
PDF
IoT with Vaadin Elements
Jürgen Treml
 
Switch Away from Icon Fonts to SVG
Exove
 
Svghtml5 Meetup
Oswald Campesato
 
Introduction to Vue.js DevStaff Meetup 13.02
Paul Bele
 
Intro to vue.js
TechMagic
 
Tailwind CSS - KanpurJS
Naveen Kharwar
 
SharePoint Wednesday Port Elisabeth - Introduction to AngularJS with the Micr...
Sébastien Levert
 
Angular2 + AWS Lambdaでサーバサイドレンダリングしてみた
暁 三宅
 
IoT with Vaadin Elements
Jürgen Treml
 

What's hot (19)

PPTX
Basics of Vue.js 2019
Paul Bele
 
PPTX
Build fast word press site in react in 30 mins with frontity
Imran Sayed
 
PDF
1.3にBrowserify組み合わせてイベント駆動にした話
Okuno Kentaro
 
PDF
introduction to Vue.js 3
ArezooKmn
 
PDF
Getting Started with Vue.js
Felicia O'Garro
 
PDF
Don't let FaaS do a BaaS job
Tessa Mero
 
PDF
Integrating Apache Wookie with AEM by Rima Mittal and Ankit Gubrani
AEM HUB
 
PDF
JS Framework Comparison - An infographic
InApp
 
PPTX
Super tools to boost productivity in React dev env!
Souvik Basu
 
PPTX
Angular.js in XPages
Mark Roden
 
PDF
Deep dive into Vue.js
선협 이
 
PPTX
Animate any - introduction
virajrajankar
 
PDF
Integrating Apache Wookie with AEM || AEM-Wookie Connector Tool
Ankit Gubrani
 
PDF
Play Framework on Google App Engine
Fred Lin
 
PDF
Introduction to QC
Kazuhiro Kosaka
 
PDF
Flash Platformアップデート
Mariko Nishimura
 
PPTX
Web App Infrastructure
NISHANT SHRISTIRAJ
 
PPTX
Automated perf optimization - jQuery Conference
Matthew Lancaster
 
PPTX
Angular vs React: Building modern SharePoint interfaces with SPFx
Dimcho Tsanov
 
Basics of Vue.js 2019
Paul Bele
 
Build fast word press site in react in 30 mins with frontity
Imran Sayed
 
1.3にBrowserify組み合わせてイベント駆動にした話
Okuno Kentaro
 
introduction to Vue.js 3
ArezooKmn
 
Getting Started with Vue.js
Felicia O'Garro
 
Don't let FaaS do a BaaS job
Tessa Mero
 
Integrating Apache Wookie with AEM by Rima Mittal and Ankit Gubrani
AEM HUB
 
JS Framework Comparison - An infographic
InApp
 
Super tools to boost productivity in React dev env!
Souvik Basu
 
Angular.js in XPages
Mark Roden
 
Deep dive into Vue.js
선협 이
 
Animate any - introduction
virajrajankar
 
Integrating Apache Wookie with AEM || AEM-Wookie Connector Tool
Ankit Gubrani
 
Play Framework on Google App Engine
Fred Lin
 
Introduction to QC
Kazuhiro Kosaka
 
Flash Platformアップデート
Mariko Nishimura
 
Web App Infrastructure
NISHANT SHRISTIRAJ
 
Automated perf optimization - jQuery Conference
Matthew Lancaster
 
Angular vs React: Building modern SharePoint interfaces with SPFx
Dimcho Tsanov
 
Ad

Similar to SVG 101 (20)

PDF
SVG Strikes Back
Matt Baxter
 
PDF
Before Going Vector
david deraedt
 
PDF
Next generation Graphics: SVG
David Corbacho Román
 
PPTX
Deep Dive into SVG and Its Applications.pptx
JoelDSouza95
 
PDF
Standard svg
jesusnoseq
 
PDF
What is an SVG and How Should it be Used in Web Design?
Katie Hecox
 
PPTX
Scalable vector graphics(svg)
Pradip Mudi
 
PPTX
SVG - Scalable Vector Graphic
Akila Iroshan
 
PPTX
SVG and the web
Ken Shoufer Web Design
 
PDF
Intro to SVG
All Things Open
 
PDF
SVG For Web Designers (and Developers)
Sara Soueidan
 
ZIP
Vector Graphics on the Web: SVG, Canvas, CSS3
Pascal Rettig
 
PDF
The Bunny Slopes of SVG Mountain - Naomi Kennedy (Penguin Random House) - ebo...
BookNet Canada
 
PDF
SVG - Scalable Vector Graphics
Shweta Sadawarte
 
PPSX
Font icons vs inline svg - 2016
Mohammad Bayat
 
PDF
SVG (Devoxx 2011, 2011-NOV-14)
Filip Van Laenen
 
PPTX
SVG Icons and Screen Reader Accessibility
Dennis Lembree
 
PDF
S&T Ess Vee Gee 211016
Dan Dineen
 
PDF
Learn svg
FitBlar Mit
 
PDF
Svg
Ted Hsu
 
SVG Strikes Back
Matt Baxter
 
Before Going Vector
david deraedt
 
Next generation Graphics: SVG
David Corbacho Román
 
Deep Dive into SVG and Its Applications.pptx
JoelDSouza95
 
Standard svg
jesusnoseq
 
What is an SVG and How Should it be Used in Web Design?
Katie Hecox
 
Scalable vector graphics(svg)
Pradip Mudi
 
SVG - Scalable Vector Graphic
Akila Iroshan
 
SVG and the web
Ken Shoufer Web Design
 
Intro to SVG
All Things Open
 
SVG For Web Designers (and Developers)
Sara Soueidan
 
Vector Graphics on the Web: SVG, Canvas, CSS3
Pascal Rettig
 
The Bunny Slopes of SVG Mountain - Naomi Kennedy (Penguin Random House) - ebo...
BookNet Canada
 
SVG - Scalable Vector Graphics
Shweta Sadawarte
 
Font icons vs inline svg - 2016
Mohammad Bayat
 
SVG (Devoxx 2011, 2011-NOV-14)
Filip Van Laenen
 
SVG Icons and Screen Reader Accessibility
Dennis Lembree
 
S&T Ess Vee Gee 211016
Dan Dineen
 
Learn svg
FitBlar Mit
 
Svg
Ted Hsu
 
Ad

Recently uploaded (20)

PPTX
Introduction-to-Graphic-Design-and-Adobe-Photoshop.pptx
abdullahedpk
 
PPTX
United Nation - CoUnited Nation - CoUnited Nation - Copy (2).pptx
mangalindanjerremyjh
 
PDF
Shayna Andrieze Yjasmin Goles - Your VA!
shaynagoles31
 
DOCX
BusinessPlan_redesignedf word format .docx
MohammadMaqatif
 
PPTX
UCSP-Quarter 1-Week 6-Powerpoint Presentation
EmyMaquiling1
 
PPTX
3. Introduction to Materials and springs.pptx
YESIMSMART
 
PDF
Unlimited G+12 Dubai DM exam questions for contractor
saniyashaik2089
 
PPTX
Landscape assignment for landscape architecture
aditikoshley2
 
PPTX
Web Design: Enhancing User Experience & Brand Value
ashokmakwana0303
 
PPTX
Mini-Project description of design of expert project
peter349484
 
PDF
Interior design technology LECTURE 28.pdf
SasidharReddyPlannin
 
PPTX
700315768-Linguistic-Connnnnnnnnntext.pptx
rossanthonytan1
 
PDF
Line Sizing presentation about pipe sizes
anniebuzzfeed
 
PPTX
Modern_Dhaka_Apartment_Interior_Design.pptx
hasansarkeraidt
 
PPTX
Engagement for marriage life ethics b.pptx
SyedBabar19
 
PPTX
Blended Wing Body y jet engines Aircrafts.pptx
anshul9051
 
PPTX
Digital Printing presentation-update-26.08.24.pptx
MDFoysalAhmed13
 
PDF
SS27 Environments & Design Trend Book Peclers Paris
Peclers Paris
 
PDF
Kitchen_Aluminium_Doors_Prices_Presentation.pdf
Royal Matrixs
 
PDF
Dunes.pdf, Durable and Seamless Solid Surface Countertops
tranquil01
 
Introduction-to-Graphic-Design-and-Adobe-Photoshop.pptx
abdullahedpk
 
United Nation - CoUnited Nation - CoUnited Nation - Copy (2).pptx
mangalindanjerremyjh
 
Shayna Andrieze Yjasmin Goles - Your VA!
shaynagoles31
 
BusinessPlan_redesignedf word format .docx
MohammadMaqatif
 
UCSP-Quarter 1-Week 6-Powerpoint Presentation
EmyMaquiling1
 
3. Introduction to Materials and springs.pptx
YESIMSMART
 
Unlimited G+12 Dubai DM exam questions for contractor
saniyashaik2089
 
Landscape assignment for landscape architecture
aditikoshley2
 
Web Design: Enhancing User Experience & Brand Value
ashokmakwana0303
 
Mini-Project description of design of expert project
peter349484
 
Interior design technology LECTURE 28.pdf
SasidharReddyPlannin
 
700315768-Linguistic-Connnnnnnnnntext.pptx
rossanthonytan1
 
Line Sizing presentation about pipe sizes
anniebuzzfeed
 
Modern_Dhaka_Apartment_Interior_Design.pptx
hasansarkeraidt
 
Engagement for marriage life ethics b.pptx
SyedBabar19
 
Blended Wing Body y jet engines Aircrafts.pptx
anshul9051
 
Digital Printing presentation-update-26.08.24.pptx
MDFoysalAhmed13
 
SS27 Environments & Design Trend Book Peclers Paris
Peclers Paris
 
Kitchen_Aluminium_Doors_Prices_Presentation.pdf
Royal Matrixs
 
Dunes.pdf, Durable and Seamless Solid Surface Countertops
tranquil01
 

SVG 101

  • 8. 5) Icon Font Libraries
  • 11. 8) SVG Icon Systems
  • 12. 1. PNG 2. Sprites 3. Retina 4. Retina Sprites 5. Icon Font Libraries 6. Custom Icon Fonts 7. SVG (3 different ways) 8. SVG Icon System
  • 14. Scalable Vector Graphics • XML based • Made up of scalable vector shapes and paths. • Lines, Circles, Polygons, Ellipse, etc. • Can be used on websites
  • 16. Video of exporting on AI and Sketch
  • 17. Video of exporting on AI and Sketch
  • 19. Video of editing SVG with Sublime
  • 20. Why use SVG • Scales better because it’s vector based • More performant than jpeg, png, and icon fonts. • Accessible • Can be used on the web in 3 different ways. • Can be styled and animated using CSS and JavaScript • And so much more!
  • 22. When to use SVG
  • 23. Not for Raster Graphics (Photographs)
  • 24. SVG is only used by 
 4.0% of all Websites Source: https://w3techs.com/technologies/details/im-svg/all/all
  • 25. SVG was around since 2001
  • 27. PSD
  • 29. Comfortable using PNGs 
 and Icon Fonts
  • 30. Why use SVG • Scales better because it’s vector based • More performant than jpeg, png, and icon fonts. • Accessible • Can be used for the web in 3 different ways. • Can be styled and animated using CSS and JavaScript • And so much more!
  • 31. No more excuses… 
 start using SVGs!
  • 32. Using SVG on the Web
  • 33. Optimize - SVGO • Grunt-svgmin / Gulp-svgo
 https://github.com/sindresorhus/grunt-svgmin
 https://github.com/corneliusio/gulp-svgo • svgo-compressor - Sketch plugin
 https://github.com/BohemianCoding/svgo-compressor • SVG-NOW - Illustrator plugin:
 https://github.com/davidderaedt/SVG-NOW • SVGO GUI
 https://github.com/svg/svgo-gui
  • 34. Video of using SVGO GUI
  • 35. Using SVG on the Web • As <img> tag in HTML • Inline in HTML • As CSS background image
  • 39. Adding SVG through WordPress Editor • Core Trac Ticket 
 https://core.trac.wordpress.org/ticket/24251 • SVG Support plugin
 https://wordpress.org/plugins/svg-support/ • Code Snippet (functions.php)
 https://css-tricks.com/snippets/wordpress/allow-svg- through-wordpress-media-uploader/
  • 41. My Workflow 1. Export SVG 2. Upload to IcoMoon for symbol-defs.svg file
 https://icomoon.io/ 3. PostCSS SVG Plugin (Using Grunt)
 https://github.com/jonathantneal/postcss-svg 4. Example usage:
 background-image: url('images/icons/symbol-defs.svg#icon-menu');
  • 44. SVG Sprites Task Runners • Gulp: gulp-svg-sprite
 https://github.com/shakyShane/gulp-svg-sprites • Grunt: grunt-svg-sprite
 https://github.com/jkphl/grunt-svg-sprite
  • 46. SVG and CSS • SVG presentation attributes are becoming CSS properties • alignment-baseline, baseline-shift, clip, clip-path, clip-rule, color, color-interpolation, color- interpolation-filters, color-profile, color-rendering, cursor, direction, display, dominant- baseline, enable-background, fill, fill-opacity, fill-rule, filter, flood-color, flood-opacity, font- family, font-size, font-size-adjust, font-stretch, font-style, font-variant, font-weight, glyph- orientation-horizontal, glyph-orientation-vertical, image-rendering, kerning, letter-spacing, lighting-color, marker-end, marker-mid, marker-start, mask, opacity, overflow, pointer-events, shape-rendering, stop-color, stop-opacity, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, text-decoration, text-rendering, unicode-bidi, visibility, word-spacing, writing-mode • CSS animation is finally starting to make sense in the context of SVG
  • 49. SVG Animation - GreenSock • Great Browser Support • Doesn’t rely on other library • Support and documentation • Funded • Used by 2.5 million sites • https://greensock.com/svg-tips
  • 50. So much more with SVG • Banners • DataVisuals • Illustrations • Infographics • And More!
  • 52. Resources • Mega List of SVG Information
 https://css-tricks.com/mega-list-svg-information/ • SVG on the Web - A Practical Guide
 https://svgontheweb.com/ • SVG - Mozilla Developer Network (MDN)
 https://developer.mozilla.org/en-US/docs/Web/SVG