Badge component for Rails (with Tailwind CSS)

The Badge Component is a minimal component to make certain data standout easily. It allows a state of either primary or secondary (as set in the Rails Designer initializer) or any of the default grays and colors from Tailwind CSS. Each color’s properties (background, border) are carefully choosen.