-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThemeConfig.ts
70 lines (64 loc) · 1.5 KB
/
ThemeConfig.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { DefaultTheme } from "styled-components";
import { createGlobalStyle } from "styled-components";
interface IColors {
body: string;
text: string;
primaryMain: string;
primaryHover: string;
primaryDark: string;
bannercolor: string;
bannercolor2: string;
secondaryMain: string;
secondaryDark: string;
secondaryHover: string;
}
declare module "styled-components" {
export interface DefaultTheme {
colors: IColors;
font: string;
}
}
export const lightTheme: DefaultTheme = {
colors: {
body: "#ffffff",
text: "#000000",
primaryMain: "#464D65",
primaryHover: "#2C2055",
primaryDark: "#00675b",
bannercolor: "#081a26",
bannercolor2: "#5b4257",
secondaryMain: "#6E55C0",
secondaryDark: "#ba000d",
secondaryHover: "#6951B8",
},
font: "'Poppins', Helvetica, Trebuchet MS, Verdana",
};
export const GlobalStyles = createGlobalStyle`
*, *::after, *::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: ${({ theme }) => theme.colors.body};
color: ${({ theme }) => theme.colors.text};
font-family: ${({ theme }) => theme.font};
font-size: 16px;
min-height: 100vh;
position: relative;
}
`;
const size = {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
doublexl: "1536px",
};
export const device = {
sm: `(min-width: ${size.sm})`,
md: `(min-width: ${size.md})`,
lg: `(min-width: ${size.lg})`,
xl: `(min-width: ${size.xl})`,
doublexl: `(min-width: ${size.doublexl})`,
};