Discourse Coloring Tag

AI-generated summary

The Discourse Coloring Tag component, introduced by tachibanalolo, allows administrators to customize tag background and text colors via comma-delimited settings (e.g., Tag Name,Background Color,Text Color). While the component offers visual customization, users have raised several concerns and feature requests. frold requested support for icons (e.g., FontAwesome) within tags, but tachibanalolo suggested using emojis instead, a response frold found unsatisfactory. mattdm and jrgong proposed a feature to apply color settings to entire tag groups automatically, rather than individually, to streamline management for new tags. Compatibility issues were also highlighted: Jagster noted a conflict where this component causes icons from the Tag icons component to disappear. Additionally, Ivan_Rapekas confirmed compatibility with colored-tag-styles. However, Moin and Campano reported that the component is currently broken due to recent core changes in how tags are rendered, leading sam to add a #broken tag to the discussion.

This is a Discourse theme component that allows admin to change tag’s background color and text color.

Repository Link
https://github.com/RailForWork/Discourse-Coloring-Tag

Theme Settings

Comma delimited in this order: Tag Name,Background Color,Text Color.
Tag Name: What your Tag Name is.
Background Color: Background Color of the tag.
Text Color: Decide the text color in the tag.

A correct example for settings will be: [Theme-component,#ffffff,black.]
(Both Background color and text color can be either HEX color (#ffffff) or color name (black).

25 Likes

Thanks for pointing me this way

Any plans of add support of images (like https://fontawesome.com/) with a tag like
tag_name, image, background color, text color

eg:
apple, fa-apple, red, white

I think you can use emoji in your tags instead.

Does not seems so :pensive_face: …

@tachibanalolo I have a feature request for your consideration.

Would it be possible to make a setting which applies to whole tag groups rather than individually? That way, each tag group could be easily distinguished without having to spend a lot of time mapping each one, and when new tags are added they’d automatically get colorized rather than needing to be added separately.

6 Likes

I second that request, would be happy to pay for such feature as well

4 Likes

There is small conflict’ish between this and Tag icons component. When this is in use icons will disappear. But not vice versa.

2 Likes

it’s compatible with Colored Tag Styles :slight_smile:

1 Like

Seems this component needs an update to work with the latest changes on tags: Tags are replaced for a string

1 Like

Just deactivated the component for that exact reason.

added a broken tag for now.

1 Like