ionic body.dark code example
Example 1: ionic getting automatic disable dark mode on android
One way to remove the dark theme would be by editing the variables.scss file and removing this style rule:
@media (prefers-color-scheme: dark) {
...
}
Example 2: ionic mobile always dark theme in web
// Change from dark to light. If you have not modified the variable.scss. it should be in line 79.
@media (prefers-color-scheme: dark)