11ty / 11ty-website

Documentation site for the Eleventy static site generator.

Home Page:https://www.11ty.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo-github.png looks bad on HiDPI/Retina screens

j-f1 opened this issue · comments

Since logo-github.png is 200×200 and is rendered at 200×200 CSS pixels, high-DPI screens render it with pixellation. Two potential solutions:

  • since screens today go up to 3× pixel density, change the logo-github.png image to be 600×600 and set explicit width=200 and height=200 on any <img> tag that references it
  • reference an SVG version of the image so it will look good at any screen resolution (you can also specify an explicit width/height here if you want)

The SVG (https://github.com/11ty/11ty-logo/blob/master/img/logo.svg) is actually smaller than the 200×200 PNG image, so this change would actually save bandwidth (slightly).

screenshot: (click to expand)
Screenshot_2022-03-13 15 10 26

Updated on all the repos linked up from https://github.com/11ty