# CSS username colors only working for admin/moderators?

**URL:** <https://meta.discourse.org/t/css-username-colors-only-working-for-admin-moderators/315045>\
**Category:** Development\
**Tags:** css\
**Created:** [July 4, 2024, 8:05pm UTC](https://meta.discourse.org/t/css-username-colors-only-working-for-admin-moderators/315045 "2024-07-04T20:05:38Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![kittenkraze44](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kittenkraze44/32/428869_2.png) [@kittenkraze44](https://meta.discourse.org/u/kittenkraze44)\
**Post date:** [July 6, 2024, 6:56pm UTC](https://meta.discourse.org/t/css-username-colors-only-working-for-admin-moderators/315045/20 "2024-07-06T18:56:17Z")

</div>

So I was able to figure out how to color usernames with the following:

```plaintext
.first.new-user:not(.staff) a {
    color: #00b0ff;
}

.names>span a {
    color: #ffd966;
    outline-offset: -1px;

}

```

Problem is, the second part of the code colors all usernames that aren’t new or staff (admin, mod). I want to try to figure out how to make it so it targets my trust\_level\_3 group so that one is specifically a different color. Is there any way to do this?

---

_[View the full topic](https://meta.discourse.org/t/css-username-colors-only-working-for-admin-moderators/315045)._
