You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logos: replace PNG images on the Community/Logos page with SVG
Virtually all browsers support SVG at this point.¹ Replace the PNG
images on the Logos page with SVG. This has two benefits: the
bandwidth is reduced from 24KB to 2.4KB and the SVG images can be
scaled to any size (e.g. if user zooms in).
To make this happen, change the SVG logo images slightly:
- merge g, i and t PATHs into a single PATH element,
- add IDs to the icon and text PATHs and
- if fill colour is the same for both, move the FILL attribute to root
SVG element.
Those changes make it possible to USE the logo and text individually and
change their FILL colour. This way, the Logos page needs to reference
only one SVG file.
The one visual difference is in handling dark theme. The website has
a global style which reduces brightness of all IMG elements. This
causes the logos to look darker than they are in reality when viewing
the page in dark mode. With this change, the logo colours are
unaffected by the theme.
¹ https://caniuse.com/svg-html5
Signed-off-by: Michał Nazarewicz <mina86@mina86.com>
0 commit comments