darkmode-lmh

1.0.6 • Public • Published

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>

Dependents (0)

Package Sidebar

Install

npm i darkmode-lmh

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

110 kB

Total Files

8

Last publish

Collaborators

  • lmhcomp3000