Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 1 min read

We needed customizable SVG icons for a booking app. Somehow, we built an editor.

Over a year ago, while building a booking app for beauty specialists (nails, hair, makeup, massage), we ran into a seemingly minor problem. Each specialist could customize their booking page with different themes β€” past

Over a year ago, while building a booking app for beauty specialists (nails, hair, makeup, massage), we ran into a seemingly minor problem.

Each specialist could customize their booking page with different themes β€” pastel, light, dark, custom brand colors β€” all driven by CSS variables.

We only had a dozen or two multicolor SVG icons. Nothing complicated. But I was too lazy to dig through SVG internals by hand, so I hacked together a tiny CLI package that generated sprites and mapped fill colors to CSS variables.

I built it, happily shared that it worked, and got the verdict: AI slop.

Fair enough.

So the little package sat on npm for about a year.

Last week, mostly out of boredom, I took another look. Hmm... a few GitHub stars. Maybe someone was actually using it.

Updated some dependencies. Fixed a few things. Cleaned it up.

Hmm... what if we played around with fill animations?

Every rabbit hole spawns new rabbits. And those rabbits can dig, too.

A week later, I had something resembling an editor. Actually, two.

Along with live palette switching, timeline-based fill animations, a browser API, and some early WebMCP experiments.

Somewhere along the way, I may have slightly deviated from the original task.

I'm curious what problems other developers run into when working with SVGs, sprites, and animations. I solved my own problem a year ago, and now I seem to be inventing new ones for myself.

Brutally honest feedback is welcome. Feedback that's just brutal, with no payload, is welcome too β€” just label it "__".

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.