# Custom CSS isn't applied to my Discourse

**URL:** <https://meta.discourse.org/t/custom-css-isnt-applied-to-my-discourse/178241>\
**Category:** Product Support\
**Created:** [February 3, 2021, 8:54am UTC](https://meta.discourse.org/t/custom-css-isnt-applied-to-my-discourse/178241 "2021-02-03T08:54:53Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![hlissner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hlissner/32/256894_2.png) [@hlissner](https://meta.discourse.org/u/hlissner)\
**Post date:** [February 5, 2021, 4:55am UTC](https://meta.discourse.org/t/custom-css-isnt-applied-to-my-discourse/178241/19 "2021-02-05T04:55:28Z")

</div>

> [@pmusaraj](#):
>
> You could achieve essentially the same thing with one main theme (that would contain all the shared styles) and 4 user-selectable color schemes. You would need to move all color calculations in the `color_definitions.scss` file of the main theme, but it is doable, I’ll try to find some time and give this a shot tomorrow.

That would be ideal, but I arrived at the current setup because multiple color schemes wouldn’t work for me. Some color schemes produce poor colors for auto-generated variables like `--primary-low`. Simply redefining the variable may work for one color scheme, but not another. A more general solution is possible if we redefine it based off `$primary`, or conditionally based on color scheme id/name, but without either multiple themes is necessary, so I can have a per-theme color\_definitions.scss (the duplication I’d like to avoid). Or is there a better option I’m missing?

---

_[View the full topic](https://meta.discourse.org/t/custom-css-isnt-applied-to-my-discourse/178241)._
