Browser Support
At minimum, provide the following for the browsers that Mercury supports:
- 32x32 PNG Icon
- 180x180 PNG apple-touch-icon
- macOS Safari safari-pinned-tab SVG
- Android Chrome meta theme color, manifest.json, and android-chrome PNG icons
- browserconfig.xml for Windows Metro and mstile PNG icons
Note: You don't really need a .ico file anymore unless you need to support Internet Explorer versions older than IE11.
Creating Favicons
Use Real Favicon Generator to create your favicons: Real Favicon Generator{:target="_blank"}. Suggested steps:
- Create a 260x260 pixel (minimum) image, export to PNG
- Upload to Real Favicon Generator
- Adjust settings for iOS
- Adjust settings for Android
- A solid color background
- Adjust settings for Windows Metro
- This looks best with the white silhouette option selected, with the brand color as the tile color
- Adjust settings for macOS Safari pinned tab svg icon
- This icon is limited to one color, so a solid one color logo works best
- Adjust Generator Options
- You can specify a path to your favicons
- You can add compression to the favicon files (you can usually select the full compression)
- Select a scaling algorithm (Lanczos is usually the best)
- Hit the generate button
- Download your icons and copy your code
Resources
- Surprising Good Favicon Docs on Wikipedia{:target="_blank"}
- Favicon Cheat Sheet{:target="_blank"}