Skip to content

Comments

Add website icon#412

Merged
jxnblk merged 2 commits intostyled-system:masterfrom
mukeshmandiwal:add-website-icon
Jun 2, 2019
Merged

Add website icon#412
jxnblk merged 2 commits intostyled-system:masterfrom
mukeshmandiwal:add-website-icon

Conversation

@mukeshmandiwal
Copy link
Contributor

No description provided.

@mukeshmandiwal
Copy link
Contributor Author

fixes #375

@crashuniverse
Copy link

We can remove the 2nd commit that adds delectation message by rebasing with latest branch. The PR is easier to focus if it has only your contribution.

docs/src/Root.js Outdated
<>
<Helmet>
<title>{title}</title>
<link rel="shortcut icon" type="image/png" href="/logo.png"/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logo in this case is 512 size, maybe a smaller 64x64 file for favicon.png or favigon.ico would be a better usage than logo.

@karlhorky
Copy link

karlhorky commented Apr 9, 2019

Maybe we should have a background color for dark mode? So that the favicon doesn't show black on dark gray like GitHub's favicon in macOS Chrome dark mode (screenshot below)?

Screen Shot 2019-04-09 at 11 17 07

@mukeshmandiwal
Copy link
Contributor Author

Should we use logo-white.png as favicon ?

@karlhorky
Copy link

karlhorky commented Apr 9, 2019

Hm, that will have problems on non-dark mode tabs, wouldn't it?

I guess my suggestion would be to fill in the transparent parts as well as a 2 pixel margin around it with white (2 pixels when it's shrunk to favicon size).

Something that would look like this (this is not a great version, just threw it together in 2 minutes):

Screen Shot 2019-04-09 at 12 50 35

vectorpaint.svg.zip

@karlhorky
Copy link

karlhorky commented Apr 9, 2019

You may also want to consider generating some other versions of the favicon with something like RealFaviconGenerator (you could take a look at my PR here: keepassxreboot/keepassxc-org#54).

@mukeshmandiwal
Copy link
Contributor Author

I generated a new one and, it looks like this

Screenshot from 2019-04-09 18-09-41

Screenshot from 2019-04-09 18-24-17

<>
<Helmet>
<title>{title}</title>
<link rel='shortcut icon' type='image/x-icon' href='/favicon.ico'/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this! Whatever you end up using to generate the icon with, can you please add an npx script to the package.json? – see how repng is used for the other images

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! If there’s not an installable package this will likely fall out of sync over time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of my concern, there is no installable package which likely fulfills our requirements

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could also be generated from the png output from repng, if that makes finding a library easier

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason not to use a .png file for the favicon? I assume most modern browsers support this now, but haven't done any research

@jxnblk
Copy link
Member

jxnblk commented Jun 2, 2019

Thanks again for the work on this! I'll go ahead and merge this PR since I'm getting ready to ship updated docs for v5

@jxnblk jxnblk merged commit 941e358 into styled-system:master Jun 2, 2019
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

Successfully merging this pull request may close these issues.

4 participants