An easy API to use to detect current dark/white mode

Would really love to have an API of sorts that could swap out certain elements in profile readme based on the dark/white mode setting of the user. Right now there’s no such way to do this so it leads to accessibility issues with images and icons.

Hey,
I think this Gist could help you :

LProgead.