mirror of
https://github.com/System-End/site.git
synced 2026-04-19 18:35:12 +00:00
Force light theme
This commit is contained in:
parent
abb5529b9f
commit
53a7ea1832
2 changed files with 9 additions and 0 deletions
7
components/force-theme.js
Normal file
7
components/force-theme.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { useColorMode } from 'theme-ui'
|
||||
|
||||
export default ({ theme }) => {
|
||||
const [colorMode, setColorMode] = useColorMode()
|
||||
setColorMode(theme)
|
||||
return null
|
||||
}
|
||||
|
|
@ -15,6 +15,7 @@ import {
|
|||
Textarea
|
||||
} from 'theme-ui'
|
||||
import { Slide } from 'react-reveal'
|
||||
import ForceTheme from '../components/force-theme'
|
||||
|
||||
const CardLink = (props) => (
|
||||
<Link
|
||||
|
|
@ -74,6 +75,7 @@ const grad = (theme, from, to) => `radial-gradient(
|
|||
|
||||
export default () => (
|
||||
<>
|
||||
<ForceTheme theme="light" />
|
||||
<Box
|
||||
as="header"
|
||||
sx={{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue