feat: Have theme follow system pref

This commit is contained in:
Tom Moor
2020-05-20 23:19:07 -07:00
parent 218b0ea76a
commit 672ffacc5b
5 changed files with 88 additions and 23 deletions

View File

@ -13,7 +13,7 @@ type Props = {
function Theme({ children, ui }: Props) {
return (
<ThemeProvider theme={ui.theme === 'dark' ? dark : light}>
<ThemeProvider theme={ui.resolvedTheme === 'dark' ? dark : light}>
<React.Fragment>
<GlobalStyles />
{children}