CSS username colors only working for admin/moderators?

If you want to target custom groups, you need to install this theme component, as stated by Moin: CSS Classes for Current User's Groups. It will insert the current user’s groups into the body HTML.

Then, you can target with .group-NAME:

.group-NAME {
  .names {
     span a::after {
       content:"★";
       margin-left: 2px;
     }
  }
}
2 Likes