Lurker News

Comments (67) 34 threads

Earlier comments
Theodores1 reply#
What is your authoring tool for SVG?

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.

visiwig1 reply#
Hey great eye. I generally design in Illustrator with a plugin by Astute graphics that allows me to reduce unnecessary anchor points, run the exported SVG through SVGOMG, and then spend solid time hand coding each background in VS Code with the SVG extension by Jock that let's me see a live preview. Then on the actual site the customizer script I wrote will catch some attributes that aren't needed and remove them, but it's far from perfect.
Theodores1 reply#
Have you tried the Jetbrains tools? The free one - WebStorm - comes with live preview.

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.

visiwig#
I'm not familiar with, and have not tried, any of the Jetbrains tools.

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.

dormento1 reply#
This rocks. Thank you!
visiwig#
Glad you think so, you're welcome, enjoy!
ksymph1 reply#
Hmm, the parabolic ones seem to be broken? Both on FF and Chromium, they just display as an outline of a single shape on a black background.
lelanthran1 reply#
> Hmm, the parabolic ones seem to be broken? Both on FF and Chromium, they just display as an outline of a single shape on a black background.

Move the sliders.

ksymph#
Whoopsie, thanks
pseudosavant1 reply#
I'm a sucker for this kind of stuff, but I'm usually disappointed after clicking the link. These on the other hand are excellent, and that they have configurable options like stroke, color, etc is gravy on the top. Thanks for sharing!
visiwig#
Thanks for the kind words! I've played around a lot with SVG and love how you can change various attributes to achieve cool effects.

Load more comments