mirror of
https://github.com/System-End/site.git
synced 2026-04-19 20:55:09 +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
|
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={{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue