Hi.
We try to create dark mode as a accessibility feature for our users. We are aware of all those css variables that could be used. But we are facing one problem. There are a lot of colors defined in the color theme although we didn’t define any of them.
We do have a ssx were we set those variables but variables set by the color theme do have a higher priority. And even if we don’t set them they seem to have some kind of default and keep the higher priority.
If I set on ssx
:root {
--body-bg: red;
--xwiki-page-content-bg: red;
}
And did not set both variables in the color theme both are styled white. If I set both variables in the color theme with blue, both are styled blue. My definitions in the ssx do not have an impact.
To create a dark, high contrast or low contrast mode I do have to use css which I best can serve with an ssx.
Is there a possibility to overwrite all variables set (explicit or by default) of a color theme?
Regards, Simpel