1.0.0 • Published 5 months ago

js-dark-mode v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Following Steps will Help You Achieve It:-

1) Create a file "index.html" in your root directory.

2) Install the Library.

npm install js-dark-mode

3) Create a button.

<button class="dark-mode-toggle">Toggle Dark Mode</button>

4) Put the following in the "head" tag. (Adjust Path)

<link rel="stylesheet" href="./node_modules/javascript-dark-mode/index.css">

5) Put the following in the "body" tag. (Adjust Path)

 <script src="./node_modules/javascript-dark-mode/index.js" defer></script>

Good Luck.

1.0.0

5 months ago