# CSS Color scheme not updating properly

**URL:** https://meta.discourse.org/t/css-color-scheme-not-updating-properly/171596
**Category:** Support
**Created:** [November 28, 2020, 11:53pm UTC](https://meta.discourse.org/t/css-color-scheme-not-updating-properly/171596 "2020-11-28T23:53:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [November 28, 2020, 11:53pm UTC](https://meta.discourse.org/t/css-color-scheme-not-updating-properly/171596/1 "2020-11-28T23:53:32Z")

</div>

I have been trying to create color palettes for my Theme. Whenever I use the variables $primary, $secondary etc in the css customization for the theme it will always use the default color palette for some reason. Even though in my profile preferences I changed it to a different palette, it seems like its continuing to grab the colors from the default palette.

The only way I can get the accurate color palette the user picked is by using `var(--secondary)` or `var(--primary)` Is there any way to fix this??

I turned off cache on Cloudflare and purged it, as well as ctrl/shift + F5 to refresh without cache and I am still getting the same issue. Any help here?

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [November 30, 2020, 4:07pm UTC](https://meta.discourse.org/t/css-color-scheme-not-updating-properly/171596/2 "2020-11-30T16:07:27Z")

</div>

See [Update themes and plugins to support automatic dark mode](https://meta.discourse.org/t/updating-themes-and-plugins-to-support-automatic-dark-mode/161595) for details on why that is happening

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [November 30, 2020, 4:07pm UTC](https://meta.discourse.org/t/css-color-scheme-not-updating-properly/171596/3 "2020-11-30T16:07:36Z")

</div>


