maui-theming

Installation
SKILL.md

.NET MAUI Theming

Choosing your approach

Approach Best for Limitation
AppThemeBinding Auto light/dark with OS — minimal code Only two themes (light + dark)
ResourceDictionary swap Custom branded themes, >2 themes, user preference More setup, must use DynamicResource everywhere
Both combined Auto OS response + custom theme colors Most flexible but most complex

Critical gotchas

Android: ConfigChanges.UiMode is REQUIRED

MainActivity must include ConfigChanges.UiMode or theme change events will not fire and the activity restarts instead of handling the change:

[Activity(Theme = "@style/Maui.SplashTheme",
Related skills
Installs
28
GitHub Stars
135
First Seen
Feb 17, 2026