23 ms·
Cool. I like the fact that the icon shows in the actual tab as a preview. I guess what is missing is the option to select a font?
by partisan 10y ago
Cool. I like the fact that the icon shows in the actual tab as a preview. I guess what is missing is the option to select a font?
- 0x1d 10y agoThanks! I'm thinking about adding some of the Google web fonts.
- zachrose 10y agoAlso, there's a neat technique to make the text color either black or white depending on what has more contrast against the background color. https://24ways.org/2010/calculating-color-contrast https://24ways.org/2010/calculating-color-contrast
- 0x1d 10y agoNice! I'm definitely going to use this. The text is barely visible on a lot of the lighter colors right now.
- rosstex 10y agoWhat is this magic?
- jnpatel 10y agoI didn't check the source, but rendering the <canvas> to a data URL, and using something like this [0] would work. [0]: http://stackoverflow.com/questions/5199902/isnt-it-silly-that-a-tiny-favicon-requires-yet-another-http-request-how-to-mak http://stackoverflow.com/questions/5199902/isnt-it-silly-tha...
- 0x1d 10y agoYep, this is the strategy that I'm using. I export the canvas to data URL and place the data URL in the href attribute of the favicon <link>. I'm not sure if this works in every browser though.