2023-11-23 15:25:24 +00:00
|
|
|
import { createGlobalStyle } from "styled-components";
|
2023-12-05 16:52:30 +00:00
|
|
|
import { TTheme } from "../../themes";
|
2023-11-23 15:25:24 +00:00
|
|
|
|
2023-12-05 16:52:30 +00:00
|
|
|
const GlobalStyle = createGlobalStyle<{ theme: TTheme }>`
|
2024-01-10 08:01:43 +00:00
|
|
|
html, body {
|
|
|
|
margin: 0;
|
2023-11-23 15:25:24 +00:00
|
|
|
|
2024-01-10 08:01:43 +00:00
|
|
|
background-color: ${(props) => props.theme.backgroundColor};
|
|
|
|
|
|
|
|
color: ${(props) => props.theme.color};
|
|
|
|
|
|
|
|
font-family: ${(props) => props.theme.fontFamily};
|
|
|
|
|
|
|
|
font-size: ${(props) =>
|
|
|
|
props.theme.getCorrectFontSize(props.theme.fontSize)};
|
|
|
|
}
|
2023-11-23 15:25:24 +00:00
|
|
|
|
2024-01-10 08:01:43 +00:00
|
|
|
body {
|
|
|
|
|
|
|
|
direction: ${(props) => props.theme.interfaceDirection};
|
|
|
|
}
|
2023-11-23 15:25:24 +00:00
|
|
|
`;
|
|
|
|
|
2023-12-05 16:52:30 +00:00
|
|
|
export { GlobalStyle };
|