-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy paththeme.js
More file actions
29 lines (26 loc) · 768 Bytes
/
theme.js
File metadata and controls
29 lines (26 loc) · 768 Bytes
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
import { extendTheme } from '@chakra-ui/react'
import { theme } from '@chakra-ui/theme'
import '@fontsource-variable/inter'
// color mode config
const config = {
// TODO: Change default color mode to system?
initialColorMode: 'light',
useSystemColorMode: false,
}
const fonts = {
body: "'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
heading: "'Inter Variable', 'Work Sans', system-ui, sans-serif",
}
export const customTheme = extendTheme(
{
colors: { ...theme.colors, brand: theme.colors.blue },
config: config,
fonts: fonts,
styles: {
global: {
html: { scrollBehavior: 'smooth' },
},
},
},
theme,
)