R
Railwayβ€’3y ago
Rumon

'Dark Mode' isn't being picked up automatically

Although the website has auto switching to dark mode enabled (https://github.com/railwayapp/docs/blob/8155004bd4b298f529c9beec7bcc9ecd8e749576/src/styles/theme.tsx#L60-L67), it's not actually doing so.
11 Replies
Finn
Finnβ€’3y ago
Don't think it ever has
Rumon
RumonOPβ€’3y ago
And nobody has complained before me, right?
Finn
Finnβ€’3y ago
I've complained to myself before πŸ˜…
Dhananjay
Dhananjayβ€’3y ago
I don't think they even use prefer-color-scheme to detect system theme πŸ€”
Finn
Finnβ€’3y ago
The docs are open source right? I could make a pr if I get time at some point Also thanks for showing me this damn
Dhananjay
Dhananjayβ€’3y ago
so till now you were switching whole system theme just to check that your website dark mode is working properly 😳
Finn
Finnβ€’3y ago
I was using edge://settings yeah Lol
Dhananjay
Dhananjayβ€’3y ago
hubert
Rumon
RumonOPβ€’3y ago
Nah bro! All my systems are always on dark mode. I hate lights!
Rumon
RumonOPβ€’3y ago
Yep. They're using some library called nest-themes. Not sure if there's no functionalities for auto switching themes or not.
Want results from more Discord servers?
Add your server