Search code examples
htmlcssdarkmodesamsung-internet

Samsung Internet forces dark mode


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?


Solution

  • 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.