Background Color Change Ionic Does not Change

Problems with changing the background color of an ionic app on stylesheet variables.

We were struggling to get the background color changed on an ionic app and we discovered that we were changing the color scheme background color but not in the light preference color method. It is important to make the changes outside of your color scheme preference media tag so you can get this working across multiple color schemes. 

Keep an eye out for this. 

 

.md body {
    --ion-background-color: #2b3636;
}

.ios body {
    --ion-background-color: #2b3636;
}

@media (prefers-color-scheme: dark) {
}