@benpley/wappler-theme-changer
v1.0.1
Published
Change Color Theme
Downloads
14
Maintainers
Readme
Wappler - Theme Changer
This App Connect extension creates a dropdown menu to select the colour mode (light or dark) for your project. It starts in Dark mode. Once a colour mode has ben selected, it will place your selection in Local Storage. Each time the application is opened, it will select the colour mode from the local storage.
Please note that Bootstrap 5.3+ is required.
If you are using Wappler 5 or Wappler 6 beta, then you will need to activate the Beta Channel. Follow the steps below.
- Open the Options panel (the second last icon on the left bottom).
- Select System (left bottom).
- For the Extensions Update Channel, select Beta in the dropdown.
- Save the change.
Installation
- Open your Project Settings.
- Go to the Extensions.
- Click on Add extension
- Enter @benpley/wappler-theme-changer.
- Click save.
- Click save again. This step will install the extension.
Usage
The Theme Changer dropdown can be placed anywhere in your document.
- In the App Structure panel, right-click the element where you want to add the component.
- Select Components and add the Theme Changer.
The inserted component will look something like:
<dmx-theme-changer id="changer1"></dmx-theme-changer>