# dark-light-mode

🌒 toggles dark mode... Really? Try it

## Installation

Use npm:

```bash
npm install --save dark-light-mode
```

Use yarn:

```bash
yarn add dark-light-mode
```

Use CDN:

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

## Usage

```html
<!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](https://unpkg.com/dark-light-mode/demo/index.html), 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](https://github.com/justjavac/dark-light-mode) is released
under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.
