JSPM

darkmode-lmh

1.0.6
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q33545F
    • License ISC

    Package Exports

    • darkmode-lmh
    • darkmode-lmh/dist/darkmode-lmh.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (darkmode-lmh) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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>