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

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.

1 Like

Use:

 @import "theme_variables";

Maybe that should be automatically added?

4 Likes

Definitely should, reclassified this as bug

Fixed per:

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

4 Likes