Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: detect user's dark mode preferences automagically (#18)
As noted in #15, it would be handy to respect the user's preferred light/dark mode settings, if we can detect it. This only gets referenced if there isn't an explicitly set mode in their `localStorage`. This also extracts this logic to a function, so we can more easily write a multi-line conditional, but retains the ternary logic to follow the project's style preferences. Closes #15.
- Loading branch information