2014-01-06 15:48:03 +01:00
2014-01-06 15:28:05 +01:00
2014-01-02 18:25:34 +01:00
2014-01-04 13:34:13 +01:00
2014-01-06 15:28:05 +01:00
2014-01-05 12:36:51 +01:00
2014-01-05 12:39:41 +01:00
2014-01-06 15:48:03 +01:00
2014-01-06 11:09:50 +01:00

GitHub badges in SVG format

Make your own badges! http://gh-badges.herokuapp.com

Contribute

If you want to add a badge, you only need to modify badges.json.

The format is the following:

/* Unique name of your badge. */
"build-passed": {
  /* Textual information shown, in order. */
  "text": [ "build", "passed" ],
  "colorscheme": "green"
}

Color schemes are located in colorscheme.json. Each scheme has a name and a CSS/SVG color for the color used in the first box (for the first piece of text, field colorA) and for the one used in the second box (field colorB).

"green": {
  "colorB": "#4c1"
}

Both colorA and colorB have default values. Usually, the first box uses the same dark grey, so you can rely on that default value by not providing a "colorA" field (such as above).

You can also use the "colorA" and "colorB" fields directly in the badges if you don't want to make a color scheme for it. In that case, remove the "colorscheme" field altogether.

Making your Heroku badge server

Once you have installed the Heroku Toolbelt:

heroku login
heroku create your-app-name
heroku config:set BUILDPACK_URL=https://github.com/mojodna/heroku-buildpack-multi.git#build-env
cp /path/to/Verdana.ttf .
make deploy
heroku open

Origin

See https://github.com/h5bp/lazyweb-requests/issues/150.

License

All work here is licensed CC0.

S
Description
Concise, consistent, and legible badges in SVG and raster format
Readme CC0-1.0
1 GiB
Languages
JavaScript 99.8%