https://github.com/equk/darkmode-react-context
Example project using React Hooks - Uses localstorage & supports prefers-color-scheme
https://github.com/equk/darkmode-react-context
Last synced: over 1 year ago
JSON representation
Example project using React Hooks - Uses localstorage & supports prefers-color-scheme
- Host: GitHub
- URL: https://github.com/equk/darkmode-react-context
- Owner: equk
- License: mit
- Created: 2020-04-08T14:41:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-10T12:52:50.000Z (about 6 years ago)
- Last Synced: 2025-01-24T07:11:26.738Z (over 1 year ago)
- Language: JavaScript
- Size: 269 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# darkmode-react
Example Darkmode Project Using React Hooks, Context & State.
## Features
- [x] Supports `prefers-color-scheme`
- [x] Fades to Black
- [x] Uses `localStorage`
- [x] Uses React Hooks
- [x] Uses React State
- [x] Uses React Context
## Notes
Created using `create-react-app`