How can I add custom avatar effects for specific groups?

I want to add visual effects (such as custom border, animation, or CSS class) to user avatars in posts based on their group membership. What is the recommended way to achieve this in modern Discourse (via theme, theme component, or other method)?

A step-by-step example (JS or CSS) would be appreciated. Thanks!

1 Like

this may help

you’ll probably need to build a custom theme component for more functionality. if you need someone to do it for you, Marketplace category is probably best. I think there are other topics around about adding custom enhancements to avatars but I don’t think I’ve ever seen an actual theme component for it.

2 Likes