iOS does NOT support dynamic theme switching for PWA home screen icons.
- During "Add to Home Screen": iOS picks ONE icon based on current theme
- After adding: Icon stays the same regardless of theme changes
- To update icon: Must remove app and re-add to home screen
This is a limitation of iOS Safari/WebKit, not your app configuration.
Create one icon that works well in both light and dark themes:
- Use neutral colors (works in both themes)
- Avoid pure white/black backgrounds
- Add subtle borders for contrast
- Test on both light/dark home screens
β
Good Universal Colors:
- Brand colors (blue, green, purple, etc.)
- Gradients with neutral tones
- Icons with colored backgrounds
- Subtle shadows/borders
β Avoid:
- Pure white backgrounds (invisible on light mode)
- Pure black backgrounds (invisible on dark mode)
- Very light colors without borders
- Text-heavy designs
If you prefer separate theme icons, users need to:
- Light Mode: Remove app β Switch to light β Re-add app
- Dark Mode: Remove app β Switch to dark β Re-add app
Note: Most users won't do this, so universal icon is better.
-
Light Mode Test:
- Switch iOS to light mode
- Add app to home screen
- Check visibility/contrast
-
Dark Mode Test:
- Switch iOS to dark mode
- Add app to home screen
- Check visibility/contrast
-
Universal Icon Test:
- Create one icon
- Test in both themes
- Ensure good visibility in both
Updated to use universal icon:
apple-touch-icon.png- Single icon for all themes- Removed theme-specific variants to avoid confusion
- Size: 180x180 pixels
- Format: PNG
- Background: Opaque (iOS adds rounded corners)
- Safe area: Keep content away from edges
- Visibility: Must work on both light/dark home screens
Popular apps like Instagram, Twitter, and WhatsApp use universal icons that work well in both themes. This is the industry standard approach for PWAs on iOS.