sandoche/Darkmode.js
🌓 Add a dark-mode / night-mode to your website in a few seconds observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2638
- days_rel: n/a
- days_push: 1254
- n_releases_24m: 0
Adoption not part of the score
2773 stars · 172 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Darkmode.js is a lightweight vanilla JavaScript library that adds a dark-mode/night-mode toggle to any website using CSS mix-blend-mode. It provides an automatic floating widget, remembers the user's choice in localStorage, and respects the OS prefers-color-scheme setting.
Use cases
- add dark mode to a website in seconds
- drop-in night mode toggle widget for any site
- respect user's OS dark theme preference
- remember dark mode setting across visits
- programmatically toggle dark mode without a widget
- add dark theme to WordPress or Drupal site
When to choose
- you want a zero-config, copy-paste dark mode solution
- your site lacks a native dark theme and you need a quick fix
- you want a lightweight vanilla JS widget with no dependencies
When to avoid
- you need a fully designed, per-component dark theme rather than a blend-mode filter
- mix-blend-mode rendering artifacts are unacceptable for your design
- you need fine-grained theming with CSS variables or design tokens
Facets
library · maturity maintenance
ui-components theme frontend web-development accessibility browser dark-mode vanilla-js widget mix-blend-mode npm-package theme-toggle javascript nodejs
2 sources
- readme: https://github.com/sandoche/Darkmode.js · fetched 2026-08-28 · 7961648d07a1
- homepage: https://darkmodejs.learn.uno · fetched 2026-08-29 · 7f976c5bb3dc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sandoche/Darkmode.js | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="sandoche/Darkmode.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem