A zero dependency javascript library that enables the night mode in your website easily
GPL-3.0 License
Bot releases are hidden (Show)
Published by Fcmam5 over 6 years ago
In this first version, Nightly.js has 3 functions
// To enable the dark mode
Nightly.darkify();
// To disable the dark mode
Nightly.lightify();
// Toggle between dark and light mode
Nightly.toggle();
And it changes <body>
, <input>
(text color, and background color), <button>
(color and background color), <a>
and also, Nightly.js can apply classes to elements when enabling the night mode.