As a totally off-topic aside, I spent (too much) time last night making my personal site a dark-mode switch (link in profile), and it came out looking a lot like yours. I'd tried centering U+1F506 in the switch but wasn't happy with it by the time I cut myself off, so I've gone ahead and retro-fitted in your SVG's and now have a switch which looks an awful lot like yours (wasn't much else to set them apart) but is totally JS-free; the approach involves a template that wraps page content in no less than 3 divs, and still needs cleaned up a lot (eg. better ID names), in particular there's a block of CSS that could be DRY'd out in my SSG. Might eventually adopt plausible.io too (thanks!). Do you know where your SVG's came from (sun just looks like the unicode char), and are you using a SSG yourself?
Edit: lol, broke the mobile layout in the process, no way I've got time to fiddle with that right now :p
2 comments
[ 3.1 ms ] story [ 17.1 ms ] threadInstead, choose to be bad at something.
This is so critical for making things. “What am I not doing?” Is almost as important as the positive version of the question.
As a totally off-topic aside, I spent (too much) time last night making my personal site a dark-mode switch (link in profile), and it came out looking a lot like yours. I'd tried centering U+1F506 in the switch but wasn't happy with it by the time I cut myself off, so I've gone ahead and retro-fitted in your SVG's and now have a switch which looks an awful lot like yours (wasn't much else to set them apart) but is totally JS-free; the approach involves a template that wraps page content in no less than 3 divs, and still needs cleaned up a lot (eg. better ID names), in particular there's a block of CSS that could be DRY'd out in my SSG. Might eventually adopt plausible.io too (thanks!). Do you know where your SVG's came from (sun just looks like the unicode char), and are you using a SSG yourself?
Edit: lol, broke the mobile layout in the process, no way I've got time to fiddle with that right now :p