Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

dark mode does not set prefers-color-scheme to dark

Writer Matthew Barrera

screenshot of my settings, showing UI is dark-mode, and dark-mode is chosen:

settings ui

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.

css browser example

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy