-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.js
73 lines (71 loc) · 1.42 KB
/
theme.js
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
71
72
73
"use client";
import { createTheme } from "@mui/material";
export const createCustomTheme = (fontSize) => {
return createTheme({
palette: {
primary: {
main: "#FBBF20",
},
secondary: {
main: "#f50057",
},
blue: {
primary: {
main: "#529DAD",
},
secondary: {
main: "#A2C4C9",
},
},
border: {
main: "#50AEC3",
background: "#DCEFF3",
backgroundDark: "#F9F9F9",
},
},
typography: {
fontFamily: "var(--font-gmarket)",
fontWeightLight: 300,
fontWeightRegular: 500,
fontWeightBold: 700,
fontSize: fontSize,
h1: {
fontSize: fontSize * 2,
fontWeight: 500,
},
h2: {
fontSize: fontSize * 1.8,
fontWeight: 700,
},
h3: {
fontSize: fontSize * 1.5,
fontWeight: 700,
},
h4: {
fontSize: fontSize * 1.2,
fontWeight: 700,
},
h5: {
fontSize: fontSize,
fontWeight: 700,
},
body1: {
fontSize: fontSize,
fontWeight: 500,
},
body2: {
fontSize: fontSize * 0.75,
fontWeight: 500,
},
},
breakpoints: {
values: {
xs: 0,
sm: 360, // Galaxy small
md: 390, // iPhone base
lg: 412, // Galaxy large
xl: 428, // iPhone Pro Max
},
},
});
};