by Theodores · 8mo ago · 0 comments
The SVG code is well written. It is neither Adobe bloat-spam-slop and neither is it overly SVGOMG'd.
For picky SVG people you could have some easy way to present the code. Only a minority value quality SVG, artworkers do not look at SVG code and coders just see SVG as 'assets' from the artworker. SVG therefore has not evolved to a full art form.
Nowadays I put my SVG for icons in CSS as pseudocode elements. This means you can't 'use' or 'currentColor', but I am okay with that for icons.
https://en.wikipedia.org/wiki/Lea_Verou
Lea Verou got me started on this particular technique, the gotcha is that you have to escape the hash characters with %023. Her presentations can be found on Youtube, and Lea also has a fab website.
When you say psuedocode, are you talking ::before ::after or something else? I've used svg icons on elements as background-image DataURIs -- probably similar if not the same thing. Yes I know who Lea Verou is and she's influenced one of my SVG tools I've released.