8 stable releases
1.3.4 | Jun 1, 2024 |
---|---|
1.3.2 | Jun 1, 2023 |
1.3.1 | May 30, 2023 |
#130 in Images
Used in badgers-cli
5MB
17K
SLoC
Contains (WOFF font, 73KB) Raleway-Bold.woff, (WOFF font, 71KB) OpenSans-Bold.woff, (WOFF font, 70KB) OpenSans-ExtraBold.woff, (WOFF font, 70KB) OpenSans-SemiBold.woff, (WOFF font, 72KB) Raleway-Medium.woff, (WOFF font, 18KB) open-sans-latin-regular.woff and 1 more.
Spacebadgers
Library for generating SVG badges. It powers badgers.space.
Examples
use spacebadgers::BadgeBuilder;
// Generate a badge with the default color palette
let badge_svg = BadgeBuilder::new()
.label("release")
.status("1.0")
.build()
.svg();
// Print the SVG code to stdout
println!("{}", badge_svg);
lib.rs
:
SpaceBadgers is a library for generating SVG badges. It powers badgers.space.
Examples
use spacebadgers::BadgeBuilder;
// Generate a badge with the default color palette
let badge_svg = BadgeBuilder::new()
.label("release")
.status("1.0")
.build()
.svg();
// Print the SVG code to stdout
println!("{}", badge_svg);
A collection of color palettes.
Dependencies
~3.5–6MB
~96K SLoC