Category Badge Styles

:discourse2: Summary Category Badge Styles replaces the functionality of the deprecated category_style admin setting
:eyeglasses: Preview Preview on Discourse Theme Creator (box)
Preview on Discourse Theme Creator (bar)
:hammer_and_wrench: Repository https://github.com/discourse/discourse-category-badge-styles
:question: Install Guide How to install a theme or theme component

Install this theme component

Features

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:

Examples

Settings

Only a single simple one for this:

Name Description
category badge style The desired style of the category badges

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @JammyDodger 2024-06-16T17:41:30Z

Check documentPerform check on document:
10 Likes

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?

So this:

Style Attribute {
--category-badge-color: #0;
--category-badge-text-color: #865ac9;
}

Would end up like this:

Style Attribute {
--category-badge-color: #0;
--category-badge-text-color: #865ac9;
color: #865ac9;
}

And so like this:

(Or is it possible for me to do this locally just on my install?)