This gives you instant dark mode, but you probably won’t like the colors:
body{
filter: invert(1);
}
Another option is to give the main element in the UI-theme two similar containers, with only one of the two shown at the time. One of them having a white background and the other one a darker background.