The badge() style function used rgb-to-rgba string replacement for the background, which doesn't work with hex colors. Hex colors passed through unchanged as opaque backgrounds, hiding the text. Use hex alpha notation (color + '26' = ~15% opacity) instead.