Skip to content

Latest commit

 

History

History
133 lines (100 loc) · 3.65 KB

File metadata and controls

133 lines (100 loc) · 3.65 KB

🎨 Creating PWA Icons - Quick Guide

Required Icons for Full PWA Support

Your app needs these icon files in the public folder for full cross-platform compatibility:

📱 Required Files:

  1. pwa-192x192.png (192x192 pixels)

    • Used for Android home screen
    • Minimum size for Android
  2. pwa-512x512.png (512x512 pixels)

    • Used for Android splash screen
    • High-resolution icon
  3. apple-touch-icon.png (180x180 pixels)

    • Required for iOS devices
    • Used when adding to home screen on iPhone/iPad

🛠️ Quick Creation Methods

Method 1: Online Icon Generators (Easiest)

Option A: RealFaviconGenerator

  1. Go to: https://realfavicongenerator.net/
  2. Upload your logo/icon (square format recommended)
  3. Configure settings
  4. Download generated icons
  5. Extract pwa-192x192.png, pwa-512x512.png, and apple-touch-icon.png
  6. Place in public folder

Option B: PWA Builder Image Generator

  1. Go to: https://www.pwabuilder.com/imageGenerator
  2. Upload your logo
  3. Download generated icons
  4. Place in public folder

Option C: Favicon.io

  1. Go to: https://favicon.io/
  2. Upload your logo or create one
  3. Download package
  4. Extract required sizes
  5. Place in public folder

Method 2: Design Software

If you have design software (Photoshop, Figma, Canva, etc.):

  1. Create a square canvas (512x512 recommended)
  2. Design your icon/logo
  3. Export at these sizes:
    • 512x512 → Save as pwa-512x512.png
    • 192x192 → Save as pwa-192x192.png
    • 180x180 → Save as apple-touch-icon.png
  4. Place all files in public folder

Method 3: Using Canva (Free)

  1. Go to: https://www.canva.com/
  2. Create new design → Custom size → 512x512 pixels
  3. Design your icon
  4. Download as PNG
  5. Resize to required sizes using:
  6. Save with correct names
  7. Place in public folder

📋 Icon Design Tips

Best Practices:

  • ✅ Use square format (1:1 ratio)
  • ✅ Keep design simple and recognizable
  • ✅ Use high contrast colors
  • ✅ Avoid text (hard to read at small sizes)
  • ✅ Use solid backgrounds or transparent
  • ✅ Test at small sizes (should be readable)

Color Recommendations:

  • Use your brand colors
  • Ensure good contrast
  • Consider dark/light mode compatibility

✅ Verification

After adding icons:

  1. Build the app:

    npm run build
  2. Check files exist:

    • public/pwa-192x192.png
    • public/pwa-512x512.png
    • public/apple-touch-icon.png
  3. Test installation:

    • Android: Install via Chrome
    • iOS: Install via Safari
    • Desktop: Install via Chrome/Edge
  4. Verify icons appear:

    • Check home screen icon
    • Check splash screen (Android)
    • Check app icon in app drawer

🚨 Temporary Solution

If you don't have icons yet, the app will still work but:

  • ⚠️ Default browser icon will be used
  • ⚠️ May not look professional
  • ⚠️ Some features may not work optimally

The app is fully functional without icons, but icons improve the user experience!

📝 Quick Checklist

  • Create or obtain logo/icon design
  • Generate/resize to required sizes
  • Place files in public folder:
    • pwa-192x192.png
    • pwa-512x512.png
    • apple-touch-icon.png
  • Rebuild app: npm run build
  • Test installation on devices
  • Verify icons appear correctly

Note: You can deploy and use the app immediately - icons can be added later and will update automatically!