Last active
July 2, 2020 03:38
-
-
Save seyedi/df64be52fa2c1644401cecb75789cdf2 to your computer and use it in GitHub Desktop.
SVG favicon for modern browsers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<link rel="icon" href="favicon.svg" /> | |
<!-- it has to be made of a single colour and placed on a transparent background --> | |
<link rel="mask-icon" href="mask-icon.svg" color="#000000" /> | |
<!-- You only need the 180 x 180 size --> | |
<link rel="apple-touch-icon" href="apple-touch-icon.png"> | |
<meta name="theme-color" content="#ffffff"> | |
<link rel="manifest" href="manifest.json"> | |
</head> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Starter", | |
"short_name": "Starter", | |
"icons": [{ | |
"src": "google-touch-icon.png", | |
"sizes": "512x512" | |
}], | |
"background_color": "#ffffff", | |
"theme_color": "#ffffff", | |
"display": "fullscreen" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For old browsers just drop a 32 x 32 favicon.ico at the root of your website. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment