# Plugin de bannières de tags et thème matériel en mode sombre

**URL:** <https://meta.discourse.org/t/tag-banners-plugin-and-material-theme-in-dark-mode/191767>\
**Category:** Product Support\
**Created:** [Mai 27, 2021, 4:31 UTC](https://meta.discourse.org/t/tag-banners-plugin-and-material-theme-in-dark-mode/191767 "2021-05-27T04:31:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jcayzac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jcayzac/32/73266_2.png) [@jcayzac](https://meta.discourse.org/u/jcayzac)\
**Post date:** [Mai 27, 2021, 4:31 UTC](https://meta.discourse.org/t/tag-banners-plugin-and-material-theme-in-dark-mode/191767/1 "2021-05-27T04:31:35Z")

</div>

Bonjour,

J’utilise le plugin tag banners. Il [code en dur `primary-very-low` comme couleur d’arrière-plan pour toutes les bannières](https://github.com/discourse/discourse-tag-banners/blob/main/common/common.scss#L7), ce qui correspond à la couleur du texte en mode sombre. Le thème material par défaut utilise correctement `var(--secondary)`, qui bascule vers le sombre en mode sombre. Existe-t-il un moyen simple de corriger l’arrière-plan de nos bannières de tags ?

En gros, je voudrais que le CSS rendu utilise

```diff
 .tag-title-header {
- background: #f8f8f8;
+ background-color: var(--secondary);
 }

```

Merci.

---

_[View the full topic](https://meta.discourse.org/t/tag-banners-plugin-and-material-theme-in-dark-mode/191767)._
