react-color-mode
main
main
  • Introduction
  • Getting Started
  • Recipes
    • Next.js
  • API
    • <ColorModeScript>
    • <ColorModeContextProvider>
    • ColorModeContext
    • useColorMode
  • Other Important Stuff
    • Code of Conduct
Powered by GitBook
On this page
  • Quick Start
  • Requirements
  • Installation
  • Acknowledgments

Was this helpful?

Introduction

NextGetting Started

Last updated 4 years ago

Was this helpful?

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.

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 for his on setting up dark mode in a React app.

@joshwcomeau
excellent article