Skip to content
JS
Package

use-dark-mode

A custom React Hook to help you implement a "dark mode" component.

v2.3.1, 21 Feb 2019MITESM + CommonJSTypes: BundledReact
$ npm install use-dark-mode

Key numbers

As of 25 Sept 2026
Weekly downloads
16.3k
+11% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
7 years ago
v2.3.1
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30kSept 2025Mar 2026Sept 2026High 25.4k (25 Aug 2026)Low 5.4k (30 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

16,327 downloads last week, 77,536 in the last month. The 12-month change of +11% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.3.1, 21 Feb 20197 years ago
First published
-
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
45

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
21 kB
Dependencies (2)
use-persisted-state@use-it/event-listener
Peer dependencies (1)
react
npm install use-dark-mode
  • jsDelivrhttps://cdn.jsdelivr.net/npm/use-dark-mode@2.3.1/
  • unpkghttps://unpkg.com/use-dark-mode@2.3.1/
  • esm.shhttps://esm.sh/use-dark-mode@2.3.1
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet.