react-color-mode
Make it easy to support your user's color mode preference, whether they like light mode, dark mode, or they want you to respect their system settings.
!Versionversion-badgepackage !BSD-3-Clause Licenselicense-badgelicense !Downloadsdownloads-badgenpmtrends !Bundle sizebundlephobia-badgebundlephobia
!Build statusbuild-status-badgebuild-status !Code Coveragecoveralls-badgecoveralls !Dependenciesdaviddm-badgedaviddm !Maintainabilitycodeclimate-badgecodeclimate
!Code of Conductcode-of-conduct-badgecode-of-conduct !PRs Welcomeprs-badgeprs
!Watch on GitHubgithub-watch-badgegithub-watch !Star on GitHubgithub-star-badgegithub-star !Tweettwitter-badgetwitter
Quick Start
Requirements
- npm or Yarn
- Node.js
- React 16.8+
Installation
npm install react-color-mode
# OR
yarn add react-color-mode
Acknowledgments
- Thanks to @joshwcomeau for his excellent article on setting up dark mode in a React app.