Skip to content

SVG Favicon #5791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nstringham opened this issue Aug 15, 2020 · 2 comments
Open

SVG Favicon #5791

nstringham opened this issue Aug 15, 2020 · 2 comments

Comments

@nstringham
Copy link

What problem does this feature solve?

there is currently no option for SVG favicons

SVG favicons have many benefits such a small file size and support for CSS media queries such as prefers-color-scheme

What does the proposed API look like?

pwa: {
    iconPaths: {
      faviconSVG: 'img/icons/favicon.svg',
      favicon32: 'img/icons/favicon-32x32.png',
      favicon16: 'img/icons/favicon-16x16.png',
    }
  }

wich would generate

<link rel="icon" type="image/svg xml" href="/img/icons/favicon.svg">
<link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png">
@nstringham
Copy link
Author

this is similar to #5041

@mauriciabad
Copy link
Contributor

I would definitely use this. It allows Dark Mode Favicons, a super cool feature.

@mauriciabad mauriciabad mentioned this issue Jan 9, 2021
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants