blob: 46f927673d1046213be5c2d2615ba6c3dcbc9b05 (
plain) (
tree)
|
|
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("/public/fonts/Formular-Light.woff2") format("woff2"), url("/public/fonts/Formular-Light.woff") format("woff");
font-weight: 300;
font-display: swap;
}
@font-face {
font-family: "Formular";
src: url("/public/fonts/Formular-Regular.woff2") format("woff2"), url("/public/fonts/Formular-Regular.woff") format("woff");
font-weight: 500;
font-display: swap;
}
html {
font-size: 17px;
background-color: ${colors.backgroundDark};
}
body {
font-family: 'Formular', sans-serif !important;
-webkit-font-smoothing: antialiased;
color: #fff;
}
`;
export { GlobalStyles }
|