Dark-mode for Websites was originally published on Jun 20, 2019 and has recently been updated on Aug 6, 2020 to reflect emerging trends.
Add a dark-mode / night-mode to your website in a few seconds!
This library uses the css
mix-blend-mode in order to bring Dark-mode to any of your websites. Just copy paste the snippet and you will get a widget to turn on and off the dark-mode. You can also use it without the widget programmatically. The plugin is lightweight, built in VanillaJS. It also uses
localstorage by default so your last setting will be remembered!