Skip to content

💄 — Use CSS media prefers-color-scheme on splash screen

Users using a dark theme on there OS will obviously have a lot of chances to choose Kresus’ dark theme. But the theme is not initialized on splash screen (whene you arrive on your Kresus). Using @media (prefers-color-scheme: dark) on the splash screen avoid hurting dark theme lovers’ eyes with a white background 🙂

Works on Firefox Nightly, I don’t know for other browsers or versions, but it’s a standard CSS property and if the browser doesn’t support it, it’s not used (no effect).

Edited by Luc Didry

Merge request reports