# Use color scheme color if dark scheme, otherwise use my color in theme

**URL:** <https://meta.discourse.org/t/use-color-scheme-color-if-dark-scheme-otherwise-use-my-color-in-theme/191365>\
**Category:** Development\
**Created:** [May 23, 2021, 10:49am UTC](https://meta.discourse.org/t/use-color-scheme-color-if-dark-scheme-otherwise-use-my-color-in-theme/191365 "2021-05-23T10:49:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)\
**Post date:** [May 25, 2021, 5:21am UTC](https://meta.discourse.org/t/use-color-scheme-color-if-dark-scheme-otherwise-use-my-color-in-theme/191365/3 "2021-05-25T05:21:47Z")

</div>

Yay, seems to work 😋

A bit weird that the parameters are not in the same order as the function name.

> <https://github.com/discourse/discourse/blob/50926f614342336793f1b78672b387d545d48de3/app/assets/stylesheets/common/foundation/variables.scss#L206>

So it needs to be `dark-light-choose(#3b5998, $primary)`

---

_[View the full topic](https://meta.discourse.org/t/use-color-scheme-color-if-dark-scheme-otherwise-use-my-color-in-theme/191365)._
