Logos
SimpleIcons
We support a wide range of logos via SimpleIcons. All simple-icons are referenced using icon slugs. e.g:
- https://img.shields.io/npm/v/npm.svg?logo=nodedotjs
You can click the icon title on simple-icons to copy the slug or they can be found in the slugs.md file in the simple-icons repository. NB - the Simple Icons site and slugs.md page may at times contain new icons that haven't yet been pulled into Shields.io yet. More information on how and when we incorporate icon updates can be found here.
Shields logos
We also maintain a small number of custom logos for a handful of services: https://github.com/badges/shields/tree/master/logo They can also be referenced by name and take preference to SimpleIcons e.g:
- https://img.shields.io/npm/v/npm.svg?logo=npm
Custom Logos
Any custom logo can be passed in a URL parameter by base64 encoding it. e.g:
logoColor parameter
The logoColor
param can be used to set the color of the logo. Hex, rgb, rgba, hsl, hsla and css named colors can all be used. For SimpleIcons named logos (which are monochrome), the color will be applied to the SimpleIcons logo.
- - https://img.shields.io/badge/logo-javascript-blue?logo=javascript
- - https://img.shields.io/badge/logo-javascript-blue?logo=javascript&logoColor=f5f5f5
In the case where Shields hosts a custom multi-colored logo, if the logoColor
param is passed, the corresponding SimpleIcons logo will be substituted and colored.