because a handful of people have asked, I wrote a short thing about how to implement light & dark modes in CSS: https://lyonhe.art/following-system-color-scheme-settings-in-css/
Choosing colors is another matter altogether, and a great deal trickier. I plan to write something up on that as well