@capawesome/capacitor-android-dark-mode-support¶
Capacitor plugin for seamless Android dark mode support. Enhance user experience with prefers-color-scheme
CSS media feature compatibility.
Installation¶
Android¶
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 ofandroidx.webkit:webkit
(default:1.9.0
)
This can be useful if you encounter dependency conflicts with other plugins in your project.
Configuration¶
No configuration required for this plugin.
Demo¶
A working example can be found here: robingenz/capacitor-plugin-demo
Usage¶
The plugin only needs to be installed.
It enables the correct behavior of the prefers-color-scheme
CSS media feature.
Changelog¶
See CHANGELOG.md.
License¶
See LICENSE.