Is it possible to use a different favicon for browsers that support theme-color?

人盡茶涼 提交于 2019-11-30 18:52:29

Generic Answer

You can achieve this by using two master images:

  • A dark design, to be used over light tabs, used for favicon.ico and small PNG icons declared in the HTML (eg. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">)
  • A light design, to be used over dark background, used for high resolution icons and declared in the manifest (itself declared in the HTML as <link rel="manifest" href="/site.webmanifest">).

With this setting, Android Chrome will pick your light design while desktop browsers will pick the dark one.

RealFaviconGenerator

Full disclosure: I'm the author of this service

RFG can handle this for your. While designing your icon for Android, go to the "Dedicated picture" tab and select your light design.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!