Ionic · Capacitor

Ionic and Capacitor App Icon and Splash Screen (@capacitor/assets)

Short answer

Install @capacitor/assets, put a 1024×1024 icon and a 2732×2732 splash in an assets/ folder, and run npx @capacitor/assets generate. It writes every iOS, Android and PWA size into your native projects.

Checked against Capacitor: Splash screens and icons and @capacitor/assets in October 2026.

Source files

File in `assets/`Minimum sizeUse
icon-only.png1024×1024The icon
icon-foreground.png1024×1024Android adaptive foreground
icon-background.png1024×1024Android adaptive background
splash.png2732×2732Splash screen
splash-dark.png2732×2732Dark mode splash

PNG or JPG. The tool also accepts a resources/ folder.

Easy mode: put only assets/logo.png (and optionally logo-dark.png) there. The tool builds icons and splash screens from it with background colors you pass in.

Generate

bash
npm install --save-dev @capacitor/assets
npx @capacitor/assets generate
easy mode
npx @capacitor/assets generate \
  --iconBackgroundColor '#eeeeee' \
  --iconBackgroundColorDark '#222222' \
  --splashBackgroundColor '#eeeeee' \
  --splashBackgroundColorDark '#111111'
FlagDefaultWhat it does
--ios / --android / --pwaallOnly these platforms
--iconBackgroundColor#ffffffIcon background in easy mode
--splashBackgroundColor#ffffffSplash background in easy mode
--logoSplashScale0.2Logo size on the splash
--iosProject / --androidProjectios/App / androidCustom native folders

Capacitor icon problems and fixes

You seeWhyFix
Old icon on the deviceThe native project wasn't rebuiltRebuild and reinstall from Xcode or Android Studio
Nothing generatedNo assets/ or resources/ folder in the project rootCreate it at the root
Logo cut off on AndroidForeground has no paddingKeep the logo in the middle 66/108 of icon-foreground.png
Splash only shows a small icon on Android 12+Android 12 uses an icon on a colorExpected; tune the icon and background
Cordova project not supportedCordova support was removedUse Capacitor

FAQ

What size is the Capacitor app icon?

At least 1024×1024. The splash source is at least 2732×2732.

Is it `npx @capacitor/assets` or `npx capacitor-assets`?

The package README uses npx @capacitor/assets generate.

Does it work for Ionic?

Yes. Ionic apps use Capacitor for native builds.

Can I generate only Android?

Yes: npx @capacitor/assets generate --android.