This component allows you to smoothly change all your site's colors to dark mode and vice versa.
$ npm install darkmode-lmh
In React...
import "darkmode-lmh";
or
In your plain html file...
- download the package (unzip it), copy the folder to your project
- and insert the following code:
<script src="./darkmode-lmh/src/darkmode-lmh.js"></script>
<darkmode-lmh>
Your HTML code
</darkmode-lmh>