Skip to content

Shields.io

Concise, consistent, and legible badges in SVG and raster format.

ref-reporef-online-toolref-official-doc

Tip

Due to the large number of badge types supported by this project and its powerful functions, here is a simple introduction to static badges. For other badge types, please refer to the official documentation.

Parameters

Click to show/close parameters

NameTypeRequiredDefaultDescriptionMore Description
ref-params
badgeContentstringtrueLabel, (optional) message, and color. Separated by dashesExample: build-passing-brightgreen.
ref-querys
stylestringflatBadge stylePossible values: flat flat-square plastic for-the-badge social.
logostringIcon slug from simple-iconsYou 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. Further info.
logoColorstringThe color of the logoSupported: hex, rgb, rgba, hsl, hsla and css named colors. Supported for simple-icons logos but not for custom logos.
logoSizestringMake icons adaptively resize by setting autoUseful for some wider logos like amd and amg. Supported for simple-icons logos but not for custom logos.
labelstringOverride the default left-hand-side textURL-Encoding needed for spaces or special characters!.
labelColorstringThe color of the logoSupported: hex, rgb, rgba, hsl, hsla and css named colors. Supported for simple-icons logos but not for custom logos.
colorstringBackground color of the right partSupported: hex, rgb, rgba, hsl, hsla and css named colors.
cacheSecondsstring3600HTTP cache lifetimeUnit: seconds. Rules are applied to infer a default value on a per-badge basis. Any values specified below the default will be ignored.
linkstringSpecify the action to perform when clicking the left/right side of the badgeNote: This only works when integrating your badge in an <object> HTML tag, but not an <img> tag or a markup language.
txt
https://img.shields.io/badge/{badgeContent}{?style,logo,logoColor,logoSize,label,labelColor,color,cacheSeconds,link}

Examples

markdown
<!-- badges/shields -->
![Static Badge](https://img.shields.io/badge/badges/shields-555555?logo=github)
Static Badge
markdown
![Color Badge](https://img.shields.io/badge/F94144-F94144)
Color Badge F94144Color Badge F3722CColor Badge F8961EColor Badge F9844AColor Badge F9C74FColor Badge 90BE6DColor Badge 43AA8BColor Badge 4D908EColor Badge 577590Color Badge 555555Color Badge 277DA1

Badge Collection (v3.0.5) MIT Licensed