Files
test/src/shared/theme.ts
T

46 lines
1001 B
TypeScript

import { createGlobalStyle, ThemeProps } from "styled-components";
export const theme = {
fonts: {
basic: "Helvetica, sans-serif",
accent: "\"Permanent Marker\", cursive",
},
colors: {
orange: "#f4ae40",
blue: "#387af5",
pink: "#eb57a3",
grey: "#aaa",
darkGrey: "#303030",
videoFrameBG: "#333",
},
};
export type MainThemeProps = ThemeProps<typeof theme>;
export const GlobalStyle = createGlobalStyle<MainThemeProps>`
body {
margin: 0;
font-family: ${({ theme }) => theme.fonts.basic};
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
*,
*::after,
*::before { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
a { color: ${({ theme }) => theme.colors.blue} }
a:hover { color: ${({ theme }) => theme.colors.pink} }
input,
textarea,
button {
font-family: ${({ theme }) => theme.fonts.basic};
}
.main {
padding: 70px 0 20px;
min-height: calc(100vh - 50px);
}
`;