/dark-light-mode

🌒 toggles dark mode... Really? Try it

Primary LanguageJavaScriptMIT LicenseMIT

dark-light-mode

🌒 toggles dark mode... Really? Try it

Installation

Use npm:

npm install --save dark-light-mode

Use yarn:

yarn add dark-light-mode

Use CDN:

<script type="module" src="https://unpkg.com/dark-light-mode"></script>

Usage

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>🌒 toggles dark mode... Really? Try it</title>
    <meta charset="utf-8" />
    <script type="module" src="https://unpkg.com/dark-light-mode"></script>
  </head>
  <body>
      <dark-light-mode />
  </body>
</html>

Demo

There is a live demo, it's a web page of "The Art of War"(Chinese: 孙子兵法, Twenty-Five Hundred years ago, Sun Tzu wrote this classic book of military strategy based on Chinese warfare and military thought).

License

dark-light-mode is released under the MIT License. See the bundled LICENSE file for details.