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:
Discourse updates made 2023-11-13T05:00:00Z (UTC) or later will include this change.
In an effort to unify how categories are styled in the UI, such as in the sidebar or when mentioning a category in chat or in a post, we are removing the non-default category styles from the category_style site settings and ultimately removing this setting entirely.
For those of you already using the default (bullet) category style, no action is required.
For those โฆ
Examples
Settings
Only a single simple one for this:
Name
Description
category badge style
The desired style of the category badges
Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.
10 likes
AstonJ
(AstonJ)
24 december 2023 om 18:52
2
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?)
Jagster
(Jakke Lehtonen)
18 april 2025 om 18:24
3
Just another friendly remainder, but if this component is in use, and the badge style is nothing, it will hide all new style category icons.