# Is there a way I can import color scheme colors into my CSS code?

**URL:** <https://meta.discourse.org/t/is-there-a-way-i-can-import-color-scheme-colors-into-my-css-code/32150>\
**Category:** Bug\
**Created:** [15 أغسطس 2015، 4:49ص UTC](https://meta.discourse.org/t/is-there-a-way-i-can-import-color-scheme-colors-into-my-css-code/32150 "2015-08-15T04:49:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KazWolfe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kazwolfe/32/64441_2.png) [@KazWolfe](https://meta.discourse.org/u/KazWolfe)\
**Post date:** [15 أغسطس 2015، 4:49ص UTC](https://meta.discourse.org/t/is-there-a-way-i-can-import-color-scheme-colors-into-my-css-code/32150/1 "2015-08-15T04:49:20Z")

</div>

I have a little bit of custom CSS running to give my forum a nicer look, but I’m having issues with color schemes.

The colors I pick in the Colors tool don’t translate into my CSS without me manually editing it. Is there a way to automagically import my selected color into my CSS code?

I’ve seen `$primary`, `$secondary`, and the like, but they won’t work for me for some reason.

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [15 أغسطس 2015، 6:34ص UTC](https://meta.discourse.org/t/is-there-a-way-i-can-import-color-scheme-colors-into-my-css-code/32150/2 "2015-08-15T06:34:16Z")

</div>

Use:

```
 @import "theme_variables";

```

Maybe that should be automatically added?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [16 أغسطس 2015، 10:06ص UTC](https://meta.discourse.org/t/is-there-a-way-i-can-import-color-scheme-colors-into-my-css-code/32150/3 "2015-08-16T10:06:20Z")

</div>

Definitely should, reclassified this as bug

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [17 أغسطس 2015، 1:00ص UTC](https://meta.discourse.org/t/is-there-a-way-i-can-import-color-scheme-colors-into-my-css-code/32150/4 "2015-08-17T01:00:00Z")

</div>

Fixed per:

[https://github.com/discourse/discourse/commit/f9deebefb95a2661fa78da3bf2e52a1c3696c880](https://github.com/discourse/discourse/commit/f9deebefb95a2661fa78da3bf2e52a1c3696c880)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [17 أغسطس 2015، 1:00ص UTC](https://meta.discourse.org/t/is-there-a-way-i-can-import-color-scheme-colors-into-my-css-code/32150/5 "2015-08-17T01:00:03Z")

</div>


