From 214fc1f5f48c7d967e10172f376ccedb34364c6b Mon Sep 17 00:00:00 2001 From: Amio Date: Fri, 29 Jun 2018 23:21:35 +0800 Subject: [PATCH] Add color preset cyan: #4BA --- README.md | 18 +++++++++++++++--- lib/color-presets.js | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a649728..ce5c3e0 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,24 @@ Fast, handcraft, pure JavaScript badge generator. const badgen = require('badgen') const svgString = badgen({ - subject: 'npm', - status: 'v1.2.3', - color: 'blue' + subject: 'npm', // + status: 'v1.2.3', // + color: 'blue' // or }) ``` +Available color names: + +![](https://badgen.now.sh/badge/color/green/green) +![](https://badgen.now.sh/badge/color/yellow/yellow) +![](https://badgen.now.sh/badge/color/orange/orange) +![](https://badgen.now.sh/badge/color/red/red) +![](https://badgen.now.sh/badge/color/pink/pink) +![](https://badgen.now.sh/badge/color/purple/purple) +![](https://badgen.now.sh/badge/color/blue/blue) +![](https://badgen.now.sh/badge/color/cyan/cyan) +![](https://badgen.now.sh/badge/color/grey/grey) + ### Badge Service https://badgen.now.sh/ diff --git a/lib/color-presets.js b/lib/color-presets.js index 4fd519f..6583d84 100644 --- a/lib/color-presets.js +++ b/lib/color-presets.js @@ -7,5 +7,5 @@ module.exports = { purple: 'A3E', pink: 'E48', grey: '999', - black: '000' + cyan: '4BA' }