There's a semi-new prefers-color-scheme CSS feature that allows for detection of the system-selected dark/light mode. As implementations of dark/light modes become more popular, I think using this would solve the issue of operating in a dark environment and being blasted with a bright screen and vice versa.
I totally agree with that, despite it's not supported everywhere. My personal opinion is that the most modern approach is to use a dark theme at night and a light theme at day, switching between them automatically.
Startups and tech enthusiast. Loves building products that make your life easier. Currently, building Qovery - a platform revolutionizing application deployments in the cloud.
That's a very interesting answer. The approach with prefers-color-scheme seems very sensible, but I see it's not supported yet in all browsers unluckily.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There's a semi-new
prefers-color-scheme
CSS feature that allows for detection of the system-selected dark/light mode. As implementations of dark/light modes become more popular, I think using this would solve the issue of operating in a dark environment and being blasted with a bright screen and vice versa.developer.mozilla.org/en-US/docs/W...
I totally agree with that, despite it's not supported everywhere. My personal opinion is that the most modern approach is to use a dark theme at night and a light theme at day, switching between them automatically.
That's a very interesting answer. The approach with
prefers-color-scheme
seems very sensible, but I see it's not supported yet in all browsers unluckily.