# Mudança de cor do nome de usuário CSS para Grupos Personalizados inteiros, funciona às vezes e depois não?

**URL:** https://meta.discourse.org/t/css-change-username-color-for-entire-custom-groups-works-sometimes-then-doesnt/249110
**Category:** Development
**Created:** [Dezembro 16, 2022, 10:16am UTC](https://meta.discourse.org/t/css-change-username-color-for-entire-custom-groups-works-sometimes-then-doesnt/249110 "2022-12-16T10:16:03Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [Janeiro 14, 2023, 8:15pm UTC](https://meta.discourse.org/t/css-change-username-color-for-entire-custom-groups-works-sometimes-then-doesnt/249110/7 "2023-01-14T20:15:09Z")

</div>

Olá,

Deve funcionar assim: 🔽

```scss
.names span {
  &.group--GroupName a {
    color: red;
  }
}

```

Mas eu fiz um componente de tema rápido para isso agora. 🙂

Aqui você pode configurar isso de forma simples.

`nome_do_grupo;cor`

 ![Screenshot 2023-01-14 at 21.07.53](https://global.discourse-cdn.com/meta/original/4X/c/4/7/c476d7fc046dc78a1f1bd6dc71c112494b652f7b.png)

> **[GitHub - VaperinaDEV/name-color-by-group: This theme component allows to color the names of...](https://github.com/VaperinaDEV/name-color-by-group)**
>
> This theme component allows to color the names of users by group in posts.

---

_[View the full topic](https://meta.discourse.org/t/css-change-username-color-for-entire-custom-groups-works-sometimes-then-doesnt/249110)._
