patternlab-bootstrap-darkmode
v1.0.5
Published
A PatternLab plugin to toggle dark mode in your pattern CSS. Works with Tailwind or any CSS based on a body class.
Downloads
80
Readme
Bootstrap Darkmode Plugin for Pattern Lab Node
This adds a button to the Patternlab UI that toggles the iframe between bootstrap's light and dark themes
Installation
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
Configuration
Add the following to your patternlab-config.json
"plugins": {
"patternlab-bootstrap-darkmode": {
"enabled": true,
"initialized": false
}
}