# Градиентные цвета имени пользователя не работают, почему?

**URL:** https://meta.discourse.org/t/gradient-username-colors-dont-work-why/251740
**Category:** Development
**Created:** [14.Январь.2023 06:06:40 UTC](https://meta.discourse.org/t/gradient-username-colors-dont-work-why/251740 "2023-01-14T06:06:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [14.Январь.2023 06:06:40 UTC](https://meta.discourse.org/t/gradient-username-colors-dont-work-why/251740/1 "2023-01-14T06:06:40Z")

</div>

Если я использую это для своих модераторов, код CSS работает

```plaintext
.names {
  span.moderator a {
    background: linear-gradient(to right,#BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

```

Теперь, если я использую тот же код, просто добавляя группу DexPremium, участники этой группы не меняют свои имена

```plaintext
.names {
  span.DexPremium a {
    background: linear-gradient(to right,#BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

```

почему?

---

<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: [14.Январь.2023 07:38:51 UTC](https://meta.discourse.org/t/gradient-username-colors-dont-work-why/251740/2 "2023-01-14T07:38:51Z")

</div>

Привет,

Вот тема с тем же вопросом. 🙂 Решение и объяснение причины находятся в ответах.

> [@CSS Change username color for entire Custom Groups, works sometimes then doesn't?](https://meta.discourse.org/t/css-change-username-color-for-entire-custom-groups-works-sometimes-then-doesnt/249110?u=dodesz):
>
> I’m not sure what exactly is doing it but a(ny) CSS code I use to do this seems to turn on and off at random, I don’t know if it’s from an update, some setting, etc… The one I’ve used for the longest is .topic-post .Veeps a { color: #66FF00; } With “Veeps” being my Custom Group. It was working as of either yesterday or the day prior but I noticed today all the colors except the ones linked to specific usernames are back to default, on every theme. I made a new theme and wiped all modification…

---

<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: [15.Январь.2023 06:50:14 UTC](https://meta.discourse.org/t/gradient-username-colors-dont-work-why/251740/3 "2023-01-15T06:50:14Z")

</div>

Здравствуйте,

Это должно работать для группы DexPremium, если она установлена как основная.

```scss
.names {
  span.group--DexPremium a {
    background: linear-gradient(to right,#BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

```
