Darkmode.js
Darkmode.js is an open-source, lightweight JavaScript plugin designed to help developers add a dark mode or night mode toggle to their websites in just a few seconds.
Supports both CDN and NPM installation, offers extensive customization options (e.g., button position, colors, animation duration), and integrates with platforms like WordPress, Drupal, and Nuxt.js.
Due to the use of mix-blend-mode, some older browsers (like IE and legacy Edge) may not support it. The plugin automatically hides the button in such cases to ensure compatibility.