iOS default dark mode?

Hi,

For ios, when deploying the app on an iphone it defaults to dark mode. Is this intentional? I have disabled dark mode by commenting out the dark mode styles in variables.scss. Is there a more modular way, removing the “dark” class on body as described here does not disable dark mode.

Thanks.

1 Like

I think your iphone is using dark mode , if change it to light mode your application will run without the dark mode , to force the light mode I just did the same as you.

or you can do it like this

document.body.classList.toggle('dark', false);