@44north/toggle-tailwindcss-darkmode

A Module to aid in managing toggle-tailwindcss-darkmode in your applications

Usage no npm install needed!

<script type="module">
  import 44northToggleTailwindcssDarkmode from 'https://cdn.skypack.dev/@44north/toggle-tailwindcss-darkmode';
</script>

README

@44north/toggle-tailwindcss-darkmode

A Module to aid in managing toggle-tailwindcss-darkmode in your applications

Install

npm install @44north/toggle-tailwindcss-darkmode

or

yarn add @44north/toggle-tailwindcss-darkmode

Usage

import {
    toggleDarkMode,
    setDarkMode,
    getDarkMode,
    getDarkModePref,
    getSystemDarkModePref
} from "@44north/toggle-tailwindcss-darkmode";

setDarkMode(true);