Splash Screens and Icons
You can generate app icons, splash screens, and theme colors for your app using the built-in nap assets command. Instead of an external npm tool with its own image pipeline (like Capacitor's @capacitor/assets), Napacitor plugs source images into the MAUI host and lets the MAUI Resizetizer generate every platform bitmap at build time.
Configure the assets section
Add an assets section to napacitor.config.json:
{
"assets": {
"sourceDir": "assets",
"icon": "icon.svg",
"iconForeground": "icon-fg.svg",
"splash": "splash.svg",
"iconColor": "#512BD4",
"splashColor": "#1D2951",
"colors": {
"PageBackgroundColor": "#1D2951",
"PrimaryTextColor": "White"
}
}
}
- SVG or PNG sources are supported; icon/splash files are copied into the host's
Resources/AppIconandResources/Splashfolders; iconColor/splashColortint the generated icons and splash background;colorsentries are injected into the host'sResources/Styles/Colors.xaml(idempotently, between marker comments), where your XAML can reference them viaDynamicResource.
Generate
npx nap assets
This rewrites the <MauiIcon> / <MauiSplashScreen> elements in maui/App.csproj; the actual per-platform bitmaps are produced by the Resizetizer on the next dotnet build. Re-run npx nap assets any time you change the sources or colors — it is idempotent.
Android 12+
In Android 12 and above Google changed the way Splash Screens are displayed, using a smaller icon with colored background instead of a full screen image that was possible with Android 11 and below. The Resizetizer applies this automatically. Additional documentation about this change can be found at developer.android.com.