Support: How to check if a users browser in dark mode/day mode?

Created on 14 Aug 2020  路  4Comments  路  Source: EddieHubCommunity/support

Description

Stolen from Slack

image

You can also join the discord community here

Feel free to check out other cool repositories of EddieJoaude Community here

question solved

Most helpful comment

That's not me you silly goose!

But, I'd recommend these resources:

CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

FreeCodeCamp's take on why CSS by itself might not be enough: https://www.freecodecamp.org/news/how-to-detect-a-users-preferred-color-scheme-in-javascript-ec8ee514f1ef/

All 4 comments

stolen from @NathanDennis

That's not me you silly goose!

But, I'd recommend these resources:

CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

FreeCodeCamp's take on why CSS by itself might not be enough: https://www.freecodecamp.org/news/how-to-detect-a-users-preferred-color-scheme-in-javascript-ec8ee514f1ef/

Excellent thanks @NathanDennis I am not even sure WHO is the right github username to tag! Let's hope it gets back to @nateknown.... somehow!!

Not sure why I didn't close this issue as @NathanDennis nailed it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jamesgeorge007 picture jamesgeorge007  路  4Comments

AllanRegush picture AllanRegush  路  4Comments

rootritesh picture rootritesh  路  4Comments

adityaraute picture adityaraute  路  5Comments

PulkitSinghDev picture PulkitSinghDev  路  4Comments