-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathindex.tsx
More file actions
83 lines (72 loc) 路 1.54 KB
/
Copy pathindex.tsx
File metadata and controls
83 lines (72 loc) 路 1.54 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import {
Global as _Global,
ThemeProvider as _ThemeProvider,
css,
useTheme,
} from "@emotion/react"
import { pretendard } from "@/assets"
export const Global = () => {
const theme = useTheme()
return (
<_Global
styles={css`
body {
margin: 0;
padding: 0;
color: ${theme.colors.gray12};
background-color: ${theme.colors.gray2};
font-family: ${pretendard.style.fontFamily};
font-weight: ${pretendard.style.fontWeight};
font-style: ${pretendard.style.fontStyle};
}
* {
color-scheme: ${theme.scheme};
box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
font-weight: inherit;
font-style: inherit;
}
a {
all: unset;
cursor: pointer;
}
ul {
padding: 0;
}
// init button
button {
all: unset;
cursor: pointer;
}
// init input
input {
all: unset;
box-sizing: border-box;
}
// init textarea
textarea {
border: none;
background-color: transparent;
font-family: inherit;
padding: 0;
outline: none;
resize: none;
color: inherit;
}
hr {
width: 100%;
border: none;
margin: 0;
border-top: 1px solid ${theme.colors.gray6};
}
`}
/>
)
}