darkmode-lmh
v1.0.6
Published
This component allows you to smoothly change all your site's colors to dark mode and vice versa.
Downloads
12
Maintainers
Readme
darkmode-lmh
This component allows you to smoothly change all your site's colors to dark mode and vice versa.
Instalation
$ npm install darkmode-lmh
Usage
In React...
import "darkmode-lmh";
⚠️ darkmode-lmh might not work properly with inline styling. E.g. '<div style={{backgroundColor : 'red'}}>example' You should better use either javascript style objects or css imported files.
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>
In your HTML code...
<darkmode-lmh>
Your HTML code
</darkmode-lmh>