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?
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.
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.
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.
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.
© 2022 - 2024 — McMap. All rights reserved.