dark mode does not set prefers-color-scheme to dark
Matthew Barrera
screenshot of my settings, showing UI is dark-mode, and dark-mode is chosen:
Here is a simple code snippet showing that dark mode is not set in the browser. This example is from Chrome, but dark mode does not work in Firefox either. VS Code also does not register that I have picked dark mode ui.
Also, you can see that the browser does recognize a preferred color scheme, and it is explicitly set to "light".
1 Answer
Chrome has an open discussion about it: chrome issue. Electron —VScode uses, had similar issue but fixed now: electron issue. For VSCode and Firefox your issue may based upon versions. Updating may resolve it.
2