After upgrading Chrome to 114.0.5735.90, it now follows the system dark mode. I want to force websites opened in Google Chrome to use light mode while keeping the OS on dark mode. I've tried to disable chrome://flags/#enable-force-dark but not luck, it does nothing.
- 5,299
- 7
- 16
- 35
- 43
- 3
-
You can open and new tab customize chrome button and click on colors and themes and change the theme. ..... That all the option chrome gives – John May 31 '23 at 20:19
-
Even if I choose a light theme, the websites still follow the system theme. – Raftel May 31 '23 at 20:22
-
I use Light Mode (Windows and Linux) and Chrome works fine on all websites that way. – John May 31 '23 at 20:23
-
I'm sorry that I wasn't clear, I need to keep using the dark theme on all applications except browsers, Google chrome show web contents on dark mode and I want to force it to light mode. – Raftel May 31 '23 at 20:35
4 Answers
This fixed the issue for me in Ubuntu jammy (to be called in a terminal):
gsettings set org.gnome.desktop.interface color-scheme prefer-light
- 61
- 2
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 03 '23 at 08:52
-
-
this does not work since beginning of July, there seems to be a new update that affects the behavior of `prefer-light` GNOME option – dimisjim Jul 06 '23 at 11:37
chrome://flags/#enable-force-dark is Auto Dark Mode for Web Contents, not for the browser interface itself.
You can install a Theme from the Chrome Web Store to change the theme back. Something like Light Theme for Google Chrome or Default Light Theme.
- 9,687
- 3
- 23
- 37
-
Sorry for the confusion, I do need to force light mode for Web contents not the interface. I've tried the theme you linked, they do change the interface to light, but the website are still dark. – Raftel May 31 '23 at 20:32
-
It is currently impossible to achieve this easily. chrome://flags/#enable-force-dark only attempts to set prefers-color-scheme media option to dark, setting it to false only means it won't try to enforce it, not that'll try to enforce light theme.
This is suggested as a feature in Chromium's bug tracker, which doesn't seem to have much progress - you can bump it with good reasoning why this option should exist.
As a workaround, the best thing you can do is launch dev tools (F12), then under Styles tab click on this icon in top right corner of toolbar:
and choose prefers-colors-scheme: light. That isn't preserved ofc, though. You can also set this to a shortcut after clicking cog icon (settings) -> Shortcuts -> Toggle CSS media feature prefers-color-scheme.
- 5,299
- 7
- 16
- 35
-
this doesn't work, at least in ubuntu 22.04.2. It still forces the GNOME system-wide preference – dimisjim Jul 06 '23 at 11:40
-
Thanks for the downvote for not being able to read correctly... As I wrote, it's a **feature request that requires inconsistent workarounds**, so ofc it won't work... What do you want to work here when I'm specifically stating it's not widely available and devs aren't implementing it? – Destroy666 Jul 06 '23 at 12:00
-
You can attempt to set it in system, but the question isn't accurate in terms of that and different GUIs will have different ways of achieving it. So this answers the question for Linux/Chrome in general. – Destroy666 Jul 06 '23 at 12:08
Dark reader extension solved this issue for me. Now all apps including chrome on ubuntu are in dark theme, but websites are displayed in original colors. In extension I put it to "off" and now all works fine.
- 101
- 1