Badge4J
is a Java implementation of the badge-maker JavaScript library and is inspired by shields.io. This library also supports simple-icons.
String svg = Badge.builder().label("hello").message("world").build();
Badge.builder()
.style(Style) /* Flat(default), FlatSquare, ForTheBadge, Plastic, Social */
.label(String)
.message(String)
.color(String)
.labelColor(String)
.logo(String) /* simple-icons slug or data:image/svg xml;base64,.. */
.logoWidth(int)
.links(String[])
.build();
-
Named color by shields.io
-
Any valid CSS color
<dependency>
<groupId>org.silentsoft</groupId>
<artifactId>badge4j</artifactId>
<version>1.11.0</version>
</dependency>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please note we have a CODE_OF_CONDUCT, please follow it in all your interactions with the project.
Please refer to LICENSE.