@capawesome/capacitor-android-dark-mode-support
v8.0.1
Published
Capacitor plugin to support dark mode on Android.
Readme
@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.
Compatibility
| Plugin Version | Capacitor Version | Status | | -------------- | ----------------- | -------------- | | 8.x.x | >=8.x.x | Active support |
Installation
npm install @capawesome/capacitor-android-dark-mode-support
npx cap syncAndroid
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:
$androidxWebkitVersionversion 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.
