Crate spacebadgers
source ·Expand description
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);
Modules
- A collection of color palettes.
Structs
- Badge generator.
- Badge builder.
- Badge color palette.