The discussion introduces Category Badge Styles, an official Discourse theme component that replaces the deprecated category_style admin setting. It allows users to configure category badges as box, bar, or none via a single site setting. The official announcement provides installation links, previews, and guidance for reporting bugs or requesting features.
AstonJ requested a feature to add specific #color values to the style attribute for finer control over foreground colors, asking if this could be done locally or added to the component. Jagster noted a potential side effect: if the badge style is set to โnone,โ all new-style category icons are hidden.
Frenky presented Category Badge Styles EVO, an extended community version of the component. This fork offers greater flexibility with three independent settings (Main, Subcategory, and Topic List styles) and six display options (Box, Bar, None, Standard, Text, and Text Auto). Frenky shared the GitHub repository and expressed willingness to contribute these enhancements upstream if they would benefit the original project.
With the changes to the category_style admin setting, the ability to set the category badge style to be box, bar, or none has been moved to this theme component. You can read more about that change here:
Just switched to this and have managed to get most of my styling back, however is it possible to add #color: FOREGROUND-COLOUR to the style attribute please?
First of all, thanks to the original developers of Category Badge Styles for this excellent theme component!
Iโve created an extended version called Category Badge Styles EVO, based on the original project.
While using the component on my Aprilia motorcycle community, I wanted more flexibility in how category badges appear in different parts of the forum.
The EVO version introduces three independent settings:
Main Category Badge Style
Subcategory Badge Style
Topic List Badge Style
Each setting offers six display options: Box, Bar, None, Standard, Text, and Text Auto.
The component was developed with AI assistance, based on my feature ideas and tested on my Discourse community.
You can find the project here:
Iโd be happy to hear your thoughts. If these enhancements would be useful for the original component, Iโd also be glad to contribute them upstream.