maui-theming

maui-theming is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 157 tokens per session (3,657 once invoked), scanned A, a copy of maui-theming, MIT.

A guide to changing the visual theme of .NET MAUI apps, including light mode, dark mode, branded color sets, and user-selected themes.

In plain words
What is it for?
Use it to connect styles to the system theme, switch resource dictionaries at runtime, detect theme changes, and support light, dark, or system settings.
Why use it?
It helps keep colors and styles consistent when the device theme changes or users choose their own preference.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to connect styles to the system theme, switch resource dictionaries at runtime, detect theme changes, and support light, dark, or system settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/maui-theming
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add managedcode/dotnet-skills --skill maui-theming
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maui-theming

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/maui-theming/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/maui-theming)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/maui-theming"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/maui-theming/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for maui-theming

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/maui-theming"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/maui-theming.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00157 $0.03657
Opus 5.5 $0.00063 $0.01463
Sonnet 5.5 $0.00031 $0.00731
Haiku 4.5 $0.00016 $0.00366

Measured 3mo ago against content hash efba5fb4950e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

maui-theming scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to maui-theming — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

catalog/Frameworks/Official-DotNet-MAUI/skills/maui-theming/SKILL.md · 415 lines

How it starts

The opening of the file, as written. The whole thing — 415 lines — stays where its author put it; the contents beside it link to each section on GitHub.

.NET MAUI Theming

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.

When to Use

  • Adding light and dark mode support to a .NET MAUI app
  • Creating custom branded themes with ResourceDictionary
  • Detecting and responding to system theme changes at runtime
  • Letting users choose a preferred theme (light, dark, or system default)
  • Combining OS-driven theme response with custom color palettes

When Not to Use

Inputs

  • A .NET MAUI project targeting .NET 8 or later
  • XAML pages or C# UI code that need theme-aware styling

Workflow

  1. Detect the current theme approach in the project (AppThemeBinding, ResourceDictionary, or none).
  2. Choose the appropriate strategy: AppThemeBinding for simple light/dark, ResourceDictionary swap for custom/multiple themes, or both combined.
  3. Define theme resources — inline AppThemeBinding values or separate ResourceDictionary files with matching keys.
  4. Replace hardcoded colors with DynamicResource bindings (or AppThemeBinding markup) throughout XAML pages.
  5. Add system theme detection via Application.Current.RequestedTheme and the RequestedThemeChanged event.
  6. Implement user preference persistence with Preferences.Set / Preferences.Get and apply on startup.
  7. Verify Android ConfigChanges.UiMode is set on MainActivity to avoid activity restarts on theme change.
  8. Test both light and dark themes on at least one target platform, confirming all UI elements respond correctly.

Read the full file on GitHub · 415 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 415 lines · 157 tokens per session scan A efba5fb4950e

Subscribe to this mod's changes

maui-theming is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 157 tokens to every session and 3,657 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to maui-theming, differing in 0 lines, and is treated as a copy.

Related

maui-theming compared with skills from other repositories

maui-theming next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
maui-themingmanagedcode/dotnet-skillsSkill52716d agoMITA157Claude Code, Codex
adaptiveandroid/skillsSkill11k7d agoApache-2.0A171Claude Code
glance-canonical-layoutsandroid/skillsSkill11k7d agoApache-2.0A56Claude Code
maui-accessibilitydotnet/maui-labsSkill244todayMITA60Claude Code, Codex
sap-fiori-iosSAP/ai-skills-librarySkill16210d agoApache-2.0A0Claude Code, Codex
higroedyrustam/vibes-plugSkill1293d agoMITA57Cursor
aksel-buildernavikt/copilotSkill65yesterdayMITA89Claude Code, Codex