logoalt Hacker News

afctoday at 3:09 PM1 replyview on HN

Looks pretty cool. I think it's great that you support light/dark mode. FWIWI, I'm also a huge fan of Excalidraw.

I wanted to ask you: is there's a reason you use a separate svg file for each (light/dark) mode?

A single SVG file using CSS can change it's own colors based on the user's preference. I have an example here: http://alejo.ch/3jj - the 3 plots should honor your mode (I put the generator code here: https://github.com/alefore/mini_svg)

Just figure I'd ask. If you have a good reason for using separate files, I'd love to hear it (because it probably would also apply to what I'm doing). :)


Replies

mlysktoday at 3:29 PM

My goal is that it renders on GitHub as well as on my blog. GitHub doesn’t support css based dark mode afaik

show 2 replies