Vector graphics

Video tutorial on the workshop exercise to create a custom @ symbol icon, optimise and use the final SVG.
#1: edit type:
font to vector shape
- new file: 512x512px, RGB
-
type lowercase 'a' and set typeface to IMPACT
set large / scale up and centre align to artboard - make copy of letter for comparison
-
select copy and create outlines:
(cmd/ctrl + SHIFT + O) /or/
top menu: Type > Create Outlines
#2: add curved line:
editing path & stroke
- delete font version and draw circle around the letter with the Ellipsis tool (L), adjust fill to none and stroke to black
- select both elements and centre align
-
select scissor tool (C) and click the bottom-most anchor point of the circle
this will split the points and open the path for editing - use the direct selection tool (A) to edit your path to fit, adjust stroke weight accordingly
- set the end cap and experiment with the stroke profiles, switching direction as required
- try out the width tool (SHIFT + W) to edit the tapering of line by clicking and dragging the stroke
- make a copy of the currently editable version, lock and hide and keep as easy way to work on fresh edits
-
select the path with your final stroke settings applied - and expand stroke:
top menu: Object > Path > Expand Stroke - tidy up the graphic, switching back and forth between preview/outline views
(CMND/CTRL + Y) - to simplify graphic, select both shapes to merge via UNITE pathfinder
-
further optimisation via reducing anchor points:
top menu: Object > Path > Simplify - save as for SVG + export as for PNG (fallback)
#3: SVOMG:
optimise SVG code
- open SVG in code editor
- save file as v2 + copy all code
-
in your browser, go to SVGOMG
and paste code to optimise -
copy optimised code, paste into v2 + save
compare code - optimised file, ready to go :)
step 1 — create and optimise the SVG graphic
We will work through this together step-by-step, choosing the bold and chunky font ‘Impact’ for our new icon. Here’s a very quick step-by-step of our process.

step 2 — optimise SVG code
With your clean SVG graphic in hand – we’ll now clean up the code before adding it to our page. Thanks to Jake Archibald – the brilliant SVGOMG will optimise our code according to our chosen settings.

step 3 — add SVG to page
There are various ways to add your graphic to a webpage – we will look at three methods, their pros and cons.
download empty webpage (inc featured svg icon + html/css)
