🌒 toggles dark mode... Really? Try it
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>
<!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>
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).
dark-light-mode is released under the MIT License. See the bundled LICENSE file for details.