Capacitor plugin to support dark mode on Android.
npm install @capawesome/capacitor-android-dark-mode-supportCapacitor plugin for seamless Android dark mode support. Enhance user experience with prefers-color-scheme CSS media feature compatibility.
| Plugin Version | Capacitor Version | Status |
| -------------- | ----------------- | -------------- |
| 8.x.x | >=8.x.x | Active support |
``bash`
npm install @capawesome/capacitor-android-dark-mode-support
npx cap sync
#### Variables
If needed, you can define the following project variable in your app’s variables.gradle file to change the default version of the dependency:
- $androidxWebkitVersion version of androidx.webkit:webkit (default: 1.9.0)
This can be useful if you encounter dependency conflicts with other plugins in your project.
No configuration required for this plugin.
A working example can be found here: robingenz/capacitor-plugin-demo
The plugin only needs to be installed.
It enables the correct behavior of the prefers-color-scheme` CSS media feature.
See CHANGELOG.md.
See LICENSE.