Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dotnet/maui-theming
Guide for theming .NET MAUI apps — light/dark mode via AppThemeBinding, ResourceDictionary theme switching, DynamicResource bindings, system theme detection, and user theme preferences.
Passed 23 of 23 test cases with the skill, and 19 of 23 without it.
and 1 more in the full report
4 fixed19 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am building a view dynamically in C# for a .NET MAUI application and need to set light and dark theme values programmatically. I need to change a Label's TextColor and FontSize based on theme. What extension methods should I use on the Label control to assign these theme-dependent values?
| Checked | Without skill | With skill |
|---|---|---|
| Recommend SetAppThemeColor for setting color properties like TextColor. | Passed | Passed |
| Recommend generic SetAppTheme for non-color properties like FontSize. | Missed | Passed |
The instructions your model reads when the skill loads.
Apply light/dark mode support, custom branded themes, and runtime theme switching in .NET MAUI apps using AppThemeBinding, ResourceDictionary swapping, and system theme detection APIs.
Plugin.Maui.BootstrapTheme NuGet packageAppThemeBinding values or separate ResourceDictionary files with matching keys.DynamicResource bindings (or AppThemeBinding markup) throughout XAML pages.Application.Current.RequestedTheme and the RequestedThemeChanged event.Preferences.Set / Preferences.Get and apply on startup.ConfigChanges.UiMode is set on MainActivity to avoid activity restarts on theme change.Check these rules against the user's scenario, and apply only the ones that
affect what they asked. UiMode and dictionary swapping matter for runtime theme
switching; they are noise in a question about setting up AppThemeBinding.
test cases passed, vs 19 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.