-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.ts
51 lines (45 loc) · 1.73 KB
/
theme.ts
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
47
48
49
50
51
import {extendTheme, ThemeConfig} from "@chakra-ui/react";
const colors = {
nyanlang: {
300: "#fff7a5",
400: "#fff585",
500: "#fcda05",
600: "#dcba05",
700: "#bc9a05",
}
}
const config: ThemeConfig = {
initialColorMode: "system",
useSystemColorMode: false
}
const styles = {
global: {
"::-webkit-scrollbar": {
width: "0.4em",
height: "0.4em"
},
"::-webkit-scrollbar-track": {
background: "transparent"
},
"::-webkit-scrollbar-thumb": {
background: "gray.300",
borderRadius: "0.25em"
},
"html": {
scrollBehavior: "smooth"
},
"@supports (height: 100svh)": {
"html": {
height: "100svh"
}
}
}
}
const fonts = {
body: `"Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif`,
heading: `"Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif`,
mono: `"Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif`,
playcmd: `arial, "lucida console", sans-serif`
}
const theme = extendTheme({colors, config, styles, fonts})
export default theme