Skip to content

Basic Usage

Example:

version

version

Text Format Tips

  • Spaces: Use underscore Hello_World
  • Underscore: Use double underscore my__file

URL Format

The complete badge URL format is as follows:

Format:

https://markbadge.com/static/:left_text/:right_text?leftbg=left_bg_color&rightbg=right_bg_color&leftColor=left_text_color&rightColor=right_text_color&logo=logo_icon&logoColor=logo_icon_color&style=badge_style&scale=size_scale&theme=theme_style&logobg=logo_bg_color

Example:

https://markbadge.com/static/version/v1.0.0?leftbg=555555&rightbg=44cc11&leftColor=red&rightColor=yellow&logo=github&logoColor=red&style=flat&scale=1.5&theme=dark&logobg=333

Parameters

Style Parameters

The following parameters are supported to customize badge styles:

ParameterDescriptionAvailable Values
themePreset theme stylelight, dark (default: light)
leftbgLeft background colorAny color format from Color Support
rightbgRight background colorAny color format from Color Support
leftColorLeft text colorAny color format from Color Support
rightColorRight text colorAny color format from Color Support
logoLeft iconAny icon name from Simple Icons
logoColorIcon colorAny color format from Color Support
logobgIcon background colorAny color format from Color Support
styleBadge styleflat, flat-square
scaleBadge size scale (default: 1)Any positive number (e.g., 1, 1.5, 2)

Color Support

Supported Color Formats

Color Themes

Basic Colors

ColorHex Value
black#000000
white#ffffff
red#ff0000
green#008000
blue#0000ff
yellow#ffff00

Grayscale Colors

ColorHex Value
gray/grey#808080
lightgray#d3d3d3
darkgray#a9a9a9
silver#c0c0c0
slate#708090

Theme Colors

ColorHex ValueUsage
primary#0366d6Primary
secondary#6c757dSecondary
success#238636Success
error#f85149Error
danger#dc3545Danger
warning#d29922Warning
info#2188ffInfo
light#f8f9faLight
dark#343a40Dark
muted#6c757dMuted

Icon Support

Icons are provided by Simple Icons.

Last updated: