Material You dynamic colors are here for Ionic! 🎨
Hey everyone!
I just released v9.2.0 of Ionic Theme MD3, bringing optional Material You dynamic colors to Ionic apps through a companion Capacitor plugin.
Dynamic colors are opt-in, so you can keep your existing Ionic palette if you prefer. Apps can follow the system's light/dark setting or let users choose their own appearance.
The image shows the same two screens, with the default Ionic palette on the left and a device-derived Material You palette on the right.
I also updated the theme's appearance based on Android 17's Settings UI.
One thing I've struggled with is that the Material Design 3 guidelines don't always match what you see in actual Android apps. I've been trying to find a balance between the two, but for this release, I decided to use Android's Settings UI as the main reference. I want Ionic apps to feel familiar to people using Android every day.
Most of the visual changes are small, like adjusting padding and tweaking corner radii by a pixel or two. The idea is to get closer to Android's look without changing how Ionic components work.
For dynamic colors, the Capacitor plugin reads the device's light and dark palettes. The theme then maps them to Ionic's existing color system:
Primary, secondary, tertiary, and danger use Material You colors, including their corresponding text and icon colors.
Light, medium, and dark use the device's neutral colors, while success and warning keep Ionic's defaults.
Backgrounds that are white by default in light mode stay white.
You can still use Ionic's existing component APIs and explicit color assignments. The theme also works without the native plugin, using your existing Ionic palette.
Both the theme and the Capacitor plugin are open source under the MIT license.
Live demo: https://ionic-theme-md3.rdlabo.dev/
Source and setup: https://github.com/webview-native-ui/ionic-theme-md3
The browser demo shows the theme's appearance. Device-derived colors require the Capacitor plugin on Android.
I'd love to hear what you think, especially about the colors and how the components look on Android!