# How to overrule a color variable for one theme only?

**URL:** <https://meta.discourse.org/t/how-to-overrule-a-color-variable-for-one-theme-only/139166>\
**Category:** Development\
**Created:** [January 20, 2020, 9:25am UTC](https://meta.discourse.org/t/how-to-overrule-a-color-variable-for-one-theme-only/139166 "2020-01-20T09:25:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Queth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/queth/32/154753_2.png) [@Queth](https://meta.discourse.org/u/Queth)\
**Post date:** [January 20, 2020, 9:25am UTC](https://meta.discourse.org/t/how-to-overrule-a-color-variable-for-one-theme-only/139166/1 "2020-01-20T09:25:21Z")

</div>

(i’m sorry I couldn’t find where this would fit most, chose dev)

I have 3 themes. In one theme, the calculation of $primary\_low yields a color with too little contrast with the bgcolor. I have tried tweaking the primary color (the BG color can’t be changed due to it being a branding color), but to no avail. It will either give almost no contrast, or make a very “highlight” kind of effect which is just the opposite of what I want.

Solution (I thought) would be to simply assign a colorvalue to $primary\_low in that specific theme CSS. But it won’t stick. Even adding !important doesn’t do the trick. Is there a way of changing this for 1 theme only? Nb: these are local themes.

---

_[View the full topic](https://meta.discourse.org/t/how-to-overrule-a-color-variable-for-one-theme-only/139166)._
