import { createGlobalStyle } from 'styled-components'; import { Colors, Theme } from '.'; type GlobalStyleProps = { appTheme: Theme; colorScheme: Colors; }; export const GlobaStyle = createGlobalStyle` :root { --rdp-cell-size: 40px; } ::-webkit-scrollbar { margin-bottom: 10px; width: 14px; height: 14px; border-radius: 24px; } ::-webkit-scrollbar-track { border-radius: 4px; } ::-webkit-scrollbar-thumb { border-radius: 24px; box-shadow: inset 0 0 10px 10px rgba(0, 0, 0, 0.16); border: solid 4px transparent; } ::selection { background-color: ${({ theme, colorScheme }) => theme.colors[colorScheme][5]}; color: ${({ theme, colorScheme }) => theme.colors[colorScheme][12]}; } * { margin: 0; padding: 0; box-sizing: border-box; } body { -webkit-font-smoothing: antialiased; background-color: ${({ appTheme, theme }) => theme.colors.gray[appTheme === 'light' ? 2 : 1]}; color: ${({ theme }) => theme.colors.gray[12]}; } body, input, textarea, button { font-family: 'Inter', sans-serif; font-weight: 400; } h6, h5, h4, h3, h2, h1, strong { font-weight: 600; } `;