# Help changing color of buttons

**URL:** https://meta.discourse.org/t/help-changing-color-of-buttons/126580
**Category:** Support
**Created:** [8월 22, 2019, 10:42오후 UTC](https://meta.discourse.org/t/help-changing-color-of-buttons/126580 "2019-08-22T22:42:27Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [8월 23, 2019, 4:48오전 UTC](https://meta.discourse.org/t/help-changing-color-of-buttons/126580/2 "2019-08-23T04:48:13Z")

</div>

I’m not aware of any recent change that would cause this. However, the good news is that if you’ve updated fairly recently then you should be able to use this new feature

[https://github.com/discourse/discourse/pull/7987](https://github.com/discourse/discourse/pull/7987)

What that means is that you no longer have to find all the selectors where the `$primary-low` color is used and override them. You only have to change it in one place. That place is the `about.json` file of your theme where you [define the color palette](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--2-c).

Say for example your palate looks like this

```plaintext
"Solarized Light": {
  "primary": "586E75",
  "secondary": "EEE8D5",
  "tertiary": "268BD2",
  "quaternary": "CB4B16",
  "header_background": "002B36",
  "header_primary": "93A1A1",
  "highlight": "B58900",
  "danger": "CB4B16",
  "success": "859900",
  "love": "DC322F"
}

```

The only thing you’d need to do to override the `$primary-low` is to define it here like so

```diff
"Solarized Light": {
  "primary": "586E75",
+ "primary-low": "FF0000",
  "secondary": "EEE8D5",
  "tertiary": "268BD2",
  "quaternary": "CB4B16",
  "header_background": "002B36",
  "header_primary": "93A1A1",
  "highlight": "B58900",
  "danger": "CB4B16",
  "success": "859900",
  "love": "DC322F"
}

```

and the new color will be automatically used everywhere instead of the one Discourse generates for you.

If your theme is not remote - meaning that it was created on your Discourse site in admin \> customize - then you will have to export it, make the change above and then import it again - because this is a new feature and is not fully incorporated into the UI yet.

---

_[View the full topic](https://meta.discourse.org/t/help-changing-color-of-buttons/126580)._
