A PatternLab plugin to toggle dark mode in your pattern CSS. Works with Tailwind or any CSS based on a body class.
npm install patternlab-bootstrap-darkmodeThis adds a button to the Patternlab UI that toggles the iframe between bootstrap's light and dark themes
To add the UI Extension Plugin to your project using npm type:
npm install patternlab-bootstrap-darkmode --save
Or add it directly to your project's package.json file and run npm install
Add the following to your patternlab-config.json
`` json``
"plugins": {
"patternlab-bootstrap-darkmode": {
"enabled": true,
"initialized": false
}
}