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


#1

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.


(Kane York) #2

Use:

 @import "theme_variables";

Maybe that should be automatically added?


(Sam Saffron) #3

Definitely should, reclassified this as bug


(Sam Saffron) #4

Fixed per:

https://github.com/discourse/discourse/commit/f9deebefb95a2661fa78da3bf2e52a1c3696c880


(Sam Saffron) #5