-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathproviders.tsx
46 lines (41 loc) · 1.08 KB
/
providers.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React from 'react'
import { ChakraProvider, ColorModeScript, ThemeConfig, extendTheme } from '@chakra-ui/react'
const config: ThemeConfig = {
initialColorMode: 'dark',
useSystemColorMode: false,
}
const colors = {
gray: {
50: '#F7FAFC', // Original chakra
100: '#EDF2F7', // Original chakra
200: '#F3F5F9', // Sploot neutral 200
300: '#C8D3E9', // Sploot neutral 300
400: '#9DAAC1', // Sploot neutral 400
500: '#5E6C86', // Sploot neutral 500
600: '#3E4A60', // Sploot neutral 600
700: '#2F3848', // Sploot neutral 700
800: '#182134', // Sploot neutral 800
900: '#040810', // Sploot neutral 900
},
purple: {
200: '#A98BEE',
},
}
const styles = {
global: {
body: {
bg: 'gray.900',
},
},
}
const fonts = {
heading: 'Karla',
body: 'Karla',
}
const theme = extendTheme({ config, colors, styles, fonts })
export const AppProviders: React.FC = ({ children }) => (
<ChakraProvider theme={theme} resetCSS={true}>
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
{children}
</ChakraProvider>
)