nightly.js

A zero dependency javascript library that enables the night mode in your website easily

GPL-3.0 License

Downloads
9
Stars
161
Committers
6

Bot releases are hidden (Show)

nightly.js - 2.0.1 Latest Release

Published by Fcmam5 about 4 years ago

Security

  • Bump lodash
nightly.js -

Published by Fcmam5 over 4 years ago

Changed

  • Use querySelectorAll instead of getElementsByClassName.
  • Swap Nightly.js constructor parameters, now it's var Nightly = new Nightly(nightModeConfig, true);
nightly.js - Nightly.js v1.0

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.

Package Rankings
Top 13.28% on Npmjs.org
Badges
Extracted from project README
GitHub license dependencies Status npm version Open Source Helpers
Related Projects