Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Seriously, this is not needed at all.
You can use an one-liner to find out, whether
You don't need all that CSS creation and emulation of this module.
I've also made an add-on for Firefox, if you want to test it by switching to a dark style: https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/?src=external-github