# How can I add custom avatar effects for specific groups?

**URL:** https://meta.discourse.org/t/how-can-i-add-custom-avatar-effects-for-specific-groups/369896
**Category:** Support
**Created:** [June 12, 2025, 2:43pm UTC](https://meta.discourse.org/t/how-can-i-add-custom-avatar-effects-for-specific-groups/369896 "2025-06-12T14:43:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![joo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joo/32/334852_2.png) [@joo](https://meta.discourse.org/u/joo)
#### Post date: [June 12, 2025, 2:43pm UTC](https://meta.discourse.org/t/how-can-i-add-custom-avatar-effects-for-specific-groups/369896/1 "2025-06-12T14:43:01Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [June 12, 2025, 3:25pm UTC](https://meta.discourse.org/t/how-can-i-add-custom-avatar-effects-for-specific-groups/369896/2 "2025-06-12T15:25:56Z")

</div>

this may help

> [@How to add an avatar frame to a user group](https://meta.discourse.org/t/how-to-add-an-avatar-frame-to-a-user-group/315590):
>
> Add different avatar frames to the user group, all users can see it, but the avatar frames of different user groups are different, I tried to customize the user CSS and found that it can’t be implemented, so that the added avatar frames are only visible to the current user group

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.
