icns-frontend/styles/global.ts

28 lines
706 B
TypeScript
Raw Permalink Normal View History

import { createGlobalStyle } from "styled-components";
2022-12-16 09:14:47 +00:00
import color from "./color";
export const GlobalStyle = createGlobalStyle`
html, body {
padding: 0;
margin: 0;
font-family: 'Inter', sans-serif;
2022-12-06 14:53:31 +00:00
font-size: 16px;
2022-12-16 09:14:47 +00:00
background-color: ${({ theme }) => theme.bgColor ?? color.black};
background-size: 5rem 5rem;
background-position: top left;
background-repeat: repeat;
2022-12-16 15:29:56 +00:00
background-image: linear-gradient(${({ theme }) =>
theme.bgGridColor ?? color.grey[600]} 0.1rem,
transparent 0.1rem),
2022-12-16 09:14:47 +00:00
linear-gradient(90deg, ${({ theme }) =>
theme.bgGridColor ?? color.grey[600]} 0.1rem, transparent 0.1rem);
}
2022-12-16 15:29:56 +00:00
* {
box-sizing: border-box;
}
`;