dark-mode-hook

0.1.3 • Public • Published

dark-mode-hook

React Hook to switch to dark mode if the user has requested the system use a light or dark color theme.

Setup

npm install dark-mode-hook

Usage

Replace ReactDOM.render(<App />, document.getElementById("root"))

in your index.js with

ReactDOM.render(<AppWithTheme />, document.getElementById("root"));

Git Repository

https://github.com/NorthJaw/dark-mode-hook

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    1
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i dark-mode-hook

Weekly Downloads

1

Version

0.1.3

License

none

Unpacked Size

2.48 kB

Total Files

4

Last publish

Collaborators

  • northjaw