-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathGlobalStyle.tsx
More file actions
57 lines (48 loc) · 1.15 KB
/
GlobalStyle.tsx
File metadata and controls
57 lines (48 loc) · 1.15 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
import { Global, css } from '@emotion/react'
export const GlobalStyle = () => (
<Global
styles={css`
:root {
--header-height: 48px;
}
[data-theme='dark'] [data-hide='dark'],
[data-theme='light'] [data-hide='light'] {
display: none;
}
@media (prefers-color-scheme: dark) {
[data-theme='system'] [data-hide='dark'] {
display: none;
}
}
@media (prefers-color-scheme: light) {
[data-theme='system'] [data-hide='light'] {
display: none;
}
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
font-size: 16px;
}
* {
box-sizing: border-box;
}
pre,
code,
kbd {
font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New,
monospace;
}
ul {
list-style: auto inside;
padding: 0;
}
a {
color: steelblue;
text-decoration: none;
}
`}
/>
)