Category badge adjustment component

AI-generated summary

The Category badge adjustment component allows users to tweak the style of category badges. This component was created while implementing the Daemonite Material Theme on another Discourse instance.

The component offers three features:

  • Optionally adjust the border-radius CSS attribute of category badges for a more flat appearance
  • Optionally prevent shrinked badges on pages like /latest
  • Optionally emphasize the category label

This style deviates from the official Google Material Design language, but is considered more pleasant by the creators.

The component is available on GitHub and can be installed by following the installation documentation. The configuration is straightforward, as shown in the provided screenshot.

amotl also recommends combining this component with the Daemonite Material Theme Ample Layout Adjustments for the best experience.

Motivation

Tweak the style of the category badges.

Background

This was spawned while working on implementing the Daemonite Material Theme on another Discourse instance the other day. While it’s only a pretty minor amendment to CSS, we just wrapped it up, added appropriate settings and packaged it.

https://github.com/ip-tools/discourse-category-badge-theme-component

Features

  • Optionally adjust border-radius css attribute of category badges
    to give them a more flat / less globular appearance.
  • Optionally prevent shrinked badges on e.g. /latest.
  • Optionally emphasize category label.

Note: We know this style might deviate from the official Google Material Design language which is pretty straight on Material Design, but nevertheless we find this look more pleasant. Please enjoy it as a language dialect.

Screenshots

Before

image image

After

image image

Setup

Install

Configure


Configuration is pretty straightforward.

8 Likes

Now you can post on Customization > Theme

Thank you so much and also for moving this already.

1 Like

The best experience we get from this is when combining it with some tweaks we applied on top of the vanilla Daemonite Material Theme. It’s basically about larger font sizes and element spacing. You can learn about the corresponding amendments at Daemonite Material Theme: Ample layout adjustments.

Before

After

1 Like