Samsung Internet forces dark mode

9.8k views Asked by At

My website is designed in light mode and not supposed to react to any form of dark mode. This works on all websites, except for Samsung Internet. Whenever I open the website on Samsung Internet, it automatically swaps out the white background for a dark one, and changes the letter colors to white. Does anyone know how to fix this?

3

There are 3 answers

9
inokey On BEST ANSWER

According to article on Samusung's developer blog there's actually a way to prevent this using prefers-color-scheme media query and the color-scheme meta-tag. Please read the full article to learn how to do it properly.

0
Love2Code On

In 2017, Samsung internet introduced dark mode to its web browser. If the user has dark mode enabled, they can surf any web page through dark mode in Samsung internet read here

Does anyone know how to fix this?

Unfortunately since this is a browser implementation you can't do anything to avoid a user going to dark mode within Samsung internet.

6
Jordyno On

Yes, Samsung has published the mentioned article, but the prefers-color-scheme does not work, despite I used the <meta name="color-scheme" content="light dark"> tag. The only solution I found is testing your website on actual Samsung device and using !important variable after css values which get changed. Bunch of ignorant devs work at Samsung it seems.