cubedhuang/nimi.li

Add automatic light/dark themes?

Closed this issue · 3 comments

Would it be possible to use prefers-color-scheme to automatically set the website's light/dark theme based on user settings, instead of having to manually hit the theme button?

Looking at this, I realized that there is currently no way to use system preferences only; i.e. if your device changes light/dark mode at different times of day, it'll be remember the state that you first visited the website in and only load that state from that point on. I'll add this setting and make it the default option, with light/dark as overrides instead.

Thank you!