Force light theme

This commit is contained in:
Lachlan Campbell 2020-04-23 16:26:22 -04:00
parent abb5529b9f
commit 53a7ea1832
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,7 @@
import { useColorMode } from 'theme-ui'
export default ({ theme }) => {
const [colorMode, setColorMode] = useColorMode()
setColorMode(theme)
return null
}

View file

@ -15,6 +15,7 @@ import {
Textarea Textarea
} from 'theme-ui' } from 'theme-ui'
import { Slide } from 'react-reveal' import { Slide } from 'react-reveal'
import ForceTheme from '../components/force-theme'
const CardLink = (props) => ( const CardLink = (props) => (
<Link <Link
@ -74,6 +75,7 @@ const grad = (theme, from, to) => `radial-gradient(
export default () => ( export default () => (
<> <>
<ForceTheme theme="light" />
<Box <Box
as="header" as="header"
sx={{ sx={{