Hi,
Does anyone know how to use the primary/secondary theme colours in a custom stylesheet? I’ve tried using var(–colourname) but it doesn’t seem to work.
Thanks,
Ewan
Hi,
Does anyone know how to use the primary/secondary theme colours in a custom stylesheet? I’ve tried using var(–colourname) but it doesn’t seem to work.
Thanks,
Ewan
Hi Ewan
Perhaps surprisingly these are not directly carried through at this point. I have to be honest when I am making themes using stylesheets I tend to create my own variables:
$primary: #005555;
h1 {color: $primary;}
And ignore the colours selected in the theming.
Hope this helps
Paul
Hi Paul
That’s what we do at the moment but it would be good to pass it through as we want different colours for the navbar depending on the interface. Is it possible to pull variable values into the stylesheet or is it pure css?
Thanks,
Ewan