Custom CSS isn't applied to my Discourse

I’ve done so where I can, but without access to these variables I cannot transform colors based off my active scheme. e.g.

$primary-low: dark-light-choose(darken($secondary, 12%), lighten($secondary, 10%));

:root {
    --primary-low: #{$primary-low};
}

Is there a better way around this? I could add styles directly to each theme, but I intend to have many, and I’d rather handle some general cases from a central, global component where possible.