You picked your brand colors on purpose. The warm yellow button, the navy header, the logo that pops just right against a crisp white page. Then a customer opens your site on a Galaxy phone at 11 p.m., and the yellow button is a muddy brown, your logo has vanished into the dark, and the text sitting on your hero photo is somehow lighter than the photo.
Nobody hacked you. Samsung Internet, the browser that comes preinstalled on Galaxy phones, has a dark mode that repaints websites on its own. Worse, the polite “no thanks” signals that work in other browsers often get ignored. Let’s look at what’s actually happening, what you can and can’t control, and how to design a site that comes out of the paint job looking fine.
The Usher With a Paint Roller
Picture your website as a stage set. You built it carefully, and you even built a second, night-time version of the set for audiences who like it dark. That’s your dark theme.
Most browsers act like a good stage manager. When the audience asks for a darker show, they wheel out your night set. If you never built one, they leave your daytime set alone, or dim the house lights a bit.
Samsung Internet’s forced dark mode is a well-meaning usher who decides the room is too bright, and instead of dimming the lights, grabs a paint roller and goes over your set. He never checks the wings for the night set you built. He just paints. We’ll come back to him.
What Samsung Actually Does to Your Colors
When a Samsung Internet user turns on dark mode and the browser’s option to force dark mode onto web content is on, the browser runs your light design through its own color transformation. Samsung’s own engineers described this in a 2020 developer blog post, and they were candid about the downsides. The browser can’t easily tell when text sits on top of an image, and small icons and logos “tend to get merged with the darker background.”
Developers who’ve dug in describe a fairly consistent pattern:
- Backgrounds get pushed dark, and text gets flipped light.
- Photos and other images are toned down rather than inverted, which is why that text on your hero photo can lose contrast.
- Bright colors like yellow and orange tend to shift the most, while blues, greens and purples are often just toned down, as Klaus Breyer found while testing a real product.
- SVGs and gradients can behave unpredictably. Daniel Aleksandersen’s deep dive into the browser’s night mode found the original colors still reported to JavaScript while the screen showed something else, which makes the repaint hard to detect.
The exact algorithm has changed over the years and isn’t publicly documented, so treat those as tendencies, not rules. The headline is simple: in this mode, your colors are suggestions.
The Opt-Outs That Work Almost Everywhere Else
If you’ve searched this problem before, you’ve seen the standard answer. Tell the browser which color schemes your page supports. For a light-only site, Chrome’s documentation for its own Auto Dark Theme recommends a meta tag:
<!-- In the <head>: "this page is light only" -->
<meta name="color-scheme" content="only light">
Or the CSS version, which can also target a single element:
/* Whole page, or just one component */
:root {
color-scheme: only light;
}
MDN confirms that the only keyword forbids the browser from overriding an element’s color scheme and can turn off Chrome’s auto-darkening. In Chrome on Android, that’s the end of the story.
In Samsung Internet, it often isn’t. A recent r/webdev thread sums up the frustration: color-scheme: only light and the meta tag are both ignored, and so is a prefers-color-scheme: dark media query, so you can’t even ship styles to counteract the repaint. There’s an open issue on MDN’s browser compatibility data, #29347, questioning whether Samsung Internet should be listed as supporting color-scheme at all, plus an older one going back to 2022.
Why the Usher Won’t Listen
The 2020 Samsung post actually promised the right behavior. It described a “Prefer Media Query Over Force Dark” mode: use the site’s own dark styles if they exist, and fall back to repainting only if they don’t. The catch is that it shipped as an experimental option, not the default.
Since then, the setting has moved around between Labs, flags and the main settings screen. The workaround people pass around in 2026 bug reports and help forums is a user-side toggle, found under Settings → Webpage view and scrolling → Dark mode → “Force Dark mode for web content.” Turn that off, and the browser stops repainting pages. Even then, at least one developer in the MDN thread reported no change, so don’t count on it.
That’s great advice for you as a Samsung user. It does nothing for your customers, because you can’t flip a switch on their phones. And in forced-dark mode, reports show prefers-color-scheme still answering “light,” so your site has no reliable way to know it’s being painted.
Build the Night Set Anyway
Here’s the good news. You can’t stop the usher, but most of your visitors aren’t using Samsung’s forced dark mode. Chrome, Firefox, Safari and Edge all respect a real dark theme, and so do many apps that show web pages inside them. So the best move is the one Chrome’s own team recommends over opting out: ship a curated dark theme.
/* Declare both schemes, then define both palettes */
:root {
color-scheme: light dark;
--bg: light-dark(#ffffff, #121417);
--text: light-dark(#1d1f23, #e8eaed);
--accent: light-dark(#c7511f, #ff9a5c);
}
body {
background: var(--bg);
color: var(--text);
}
Those custom properties with light-dark() give you one source of truth for both themes. If you’ve already built a theme toggle using the approach in implementing light and dark modes, you’re most of the way there. Pair it with the meta tag in your <head> so browsers know early and don’t flash the wrong colors:
<!-- Tell browsers both themes are ready -->
<meta name="color-scheme" content="light dark">
When Samsung eventually makes its “use the site’s dark theme” behavior the default, and its own blog says that’s the right direction, your night set will already be waiting in the wings.
Design Logos That Survive the Paint
The repaint is hardest on logos and icons, because those are images, and images don’t get flipped like text does. The classic victim is a dark logo saved as a transparent PNG. It looks perfect on a white page and disappears on a black one.

A few habits make your brand identity much harder to erase:
- Give the logo its own backplate. A rounded light shape behind the mark, built into the image itself, travels with the logo wherever it goes.
- Add a thin light outline around dark marks, so they still read against a dark background.
- Don’t let the page do the logo’s job. If your logo only works because the page behind it is white, it’s fragile in forced dark mode, in email clients and on social cards too.
- Keep text out of images, and give text over photos its own solid or semi-opaque panel, so the contrast doesn’t depend on which layer gets repainted.
/* A backplate that ships with the logo, not the page */
.site-logo {
background: #fff;
padding: .4rem .7rem;
border-radius: .6rem;
}
One caveat. A CSS backplate like that is still a background, so Samsung may darken it too. Baking the plate or outline into the image file is the sturdier option. For simple marks, an SVG logo stays crisp at any size, but given the reports of odd SVG recoloring, check it on a real device before you commit.
Gradients are another soft spot. Matt Sibson watched a CSS ribbon gradient flatten into a solid block in Samsung’s dark mode. He ended up swapping in an image of the gradient for Samsung users, since images get dimmed rather than recolored. It’s a clever patch for one decorative element, not something to do sitewide.
Don’t Forget the In-App Browsers
Links opened inside apps often load in an Android WebView, and WebView has a forced-dark story of its own. Apps can allow “algorithmic darkening” with setAlgorithmicDarkeningAllowed(). According to Android’s developer docs, WebView generally skips the algorithm when your page uses prefers-color-scheme or explicitly opts out. The docs add that WebView’s default configuration wants that color-scheme meta tag before it will honor your dark media queries.
That’s one more reason the meta tag earns its spot in your <head>. Here, unlike in Samsung Internet, it really does work.
Test It on a Real Phone
You don’t need a Galaxy to see what your customers see. Samsung Internet is free on the Play Store for most Android phones. Install it, turn on dark mode, make sure the force-dark option for web content is on, and walk through your homepage, contact form and checkout.
For Chrome’s version, DevTools has an “Emulate auto dark mode” option under More tools → Rendering. It’s handy, but it’s Chrome’s algorithm, not Samsung’s, so it won’t predict the usher’s brushwork. Add both to your regular browser testing checklist. While you’re looking, check color contrast on anything that matters: buttons, form labels, prices.
What Not to Do
It’s tempting to sniff the user agent for SamsungBrowser and show a banner telling people to switch browsers. Some developers do, and Aleksandersen floated it as a last resort. But detecting the browser doesn’t tell you whether dark mode is even on, and nagging a customer about their phone is a strange way to say “welcome.”
Also, don’t confuse this with forced-colors. That media query is for high-contrast themes like Windows Contrast Themes, and it’s worth supporting for accessibility. It isn’t a documented signal for Samsung’s dark mode.
Curtain Call
You can’t take the paint roller away from the usher. You can ship a real dark theme for every browser that asks politely, give your logo a backplate it can’t lose, keep important text off busy images, and test on the phone your customers actually carry. Do that, and even a heavy-handed repaint leaves your site readable and recognizably yours.
If you’d rather have a designer build a site that holds up in light, dark and everything in between, tell me about your project.
