Upon initial page load, users with MacBooks (and other devices that support dark mode as a system setting), the mode is set to light. This has a tendency to blast my retinas with unexpected blue light at 1AM on a Tuesday night.
The browser exposes a flag that lets us known if the user has dark mode enabled on their device, namely prefers-color-scheme: dark. I think this is a pretty cool feature, and thought it'd be great to use this on elixir school. 😄
Also found an excuse to sneak in a typo fix from a previous PR that slipped through the gaps. 🙇
Upon initial page load, users with MacBooks (and other devices that support dark mode as a system setting), the mode is set to light. This has a tendency to blast my retinas with unexpected blue light at 1AM on a Tuesday night.
The browser exposes a flag that lets us known if the user has dark mode enabled on their device, namely
prefers-color-scheme: dark
. I think this is a pretty cool feature, and thought it'd be great to use this on elixir school. 😄Also found an excuse to sneak in a typo fix from a previous PR that slipped through the gaps. 🙇