@44north/toggle-tailwindcss-darkmode 中文文档教程
@44north/toggle-tailwindcss-darkmode
帮助管理应用程序中的 toggle-tailwindcss-darkmode 的模块
Install
npm install @44north/toggle-tailwindcss-darkmode
或
yarn add @44north/toggle-tailwindcss-darkmode
Usage
import {
toggleDarkMode,
setDarkMode,
getDarkMode,
getDarkModePref,
getSystemDarkModePref
} from "@44north/toggle-tailwindcss-darkmode";
setDarkMode(true);
@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);