icns-frontend/styles/global.ts
2022-12-17 00:29:56 +09:00

28 lines
706 B
TypeScript

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