blob: 0775813d92eb41b4b8cacf5204676c56fdf21e9e (
plain) (
blame)
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
|
import { createGlobalStyle } from 'styled-components';
import { cssReset } from 'ts/@next/constants/cssReset';
import { colors } from 'ts/style/colors';
// Not sure if cssReset is already imported into index.tsx
// Also: currently createglobalStyle from styled-components is
// throwing a warning about how there's not typing exported from styled-comps
const GlobalStyles = createGlobalStyle`
${cssReset};
@font-face {
font-family: "Formular";
src: url("/fonts/Formular-Light.woff2") format("woff2"), url("/fonts/Formular-Light.woff") format("woff");
font-weight: 300;
font-display: swap;
}
@font-face {
font-family: "Formular";
src: url("/fonts/Formular-Regular.woff2") format("woff2"), url("/fonts/Formular-Regular.woff") format("woff");
font-weight: 400;
font-display: swap;
}
html {
font-size: 17px;
background-color: ${colors.backgroundBlack};
}
body {
font-family: 'Formular', sans-serif !important;
-webkit-font-smoothing: antialiased;
color: #fff;
}
`;
export { GlobalStyles }
|