How can i add an additional CSS color variable / definition?

How can i add an additional CSS color variable / definition?

I need to add an extra colour… simple right? … the catch is i need to be able to have that change between both the dark and light colour schemes, on my website this is easy as we add a class to the html or body element depending on the theme being used, discourse doesn’t appear to do this and the media query for prefers colour scheme won’t work because the theme can be manually toggled, any ideas?

Not really sure this is the right place, i know it says basic HTML and CSS questions shouldn’t go here but this is more discourse specific.

1 Like

This post may help: Why might dark-light-choose() not work? - #2 by awesomerobot

7 Likes

Thanks will take a look, i never seem to get the search keywords right :slight_smile:

EDIT: working flawlessly thanks

2 Likes