gradient-badge
Badge generator with gradient support 🍭
demo to make your own badge
Check out theInstall
$ npm i gradient-badge
Usage
gradient-badge works exactly like badgen, with the gradient
parameter in addition.
Node.js
const gradientBadge = ; const svgString = ;
Browser
Result:
Adding a gradient to a badge
You can apply a color gradient to any badge already generated with badgen:
const badgen = ;const applyGradient = ; const originalBadge = ;const svgString = ;
Examples
Here are a few more examples of what you can do.
demo to make your own
Check out the
Dependencies
- badgen - Fast handcraft svg badge generator.
See also
- badge-action - Create a badge using GitHub Actions.