blob: 11c3193055f5fca6e78c9adda949f3a5f5fd8ad5 [file] [log] [blame]
idillon-sfl837ea0b2022-08-25 11:35:29 -04001import { createTheme } from "@mui/material";
2
3export default createTheme({
4 typography: {
5 fontFamily: "Ubuntu",
6 h1: {
7 fontWeight: 400,
8 fontSize: "26px",
9 lineHeight: "36px",
10 },
11 h2: {
12 fontWeight: 400,
13 fontSize: "22px",
14 lineHeight: "30px",
15 },
16 h3: {
17 fontWeight: 400,
18 fontSize: "18px",
19 lineHeight: "26px",
20 },
21 h4: {
22 fontWeight: 500,
23 fontSize: "15px",
24 lineHeight: "22px",
25 },
26 h5: {
27 fontWeight: 500,
28 fontSize: "13px",
29 lineHeight: "19px",
30 },
31 body1: {
32 fontWeight: 400,
33 fontSize: "15px",
34 lineHeight: "22px"
35 },
36 body2: {
37 fontWeight: 400,
38 fontSize: "13px",
39 lineHeight: "19px",
40 },
41 caption: {
42 fontWeight: 400,
43 fontSize: "12px",
44 lineHeight: "16px",
45 },
46 },
47 components: {
48 MuiButton: {
49 styleOverrides: {
50 root: {
51 height: "46px",
52 fontWeight: 700,
53 fontSize: "15px",
54 lineHeight: "17px",
55 textTransform: "none",
56 },
57 sizeSmall: {
58 height: "36px",
59 },
60 contained: {
61 background: "#005699",
62 "&:hover": {
63 background: "#0071C9",
64 },
65 },
66 outlined: {
67 background: "#FFF",
68 borderColor: "#0056995C",
69 color: "#005699",
70 "&:hover": {
71 background: "#0056991A",
72 borderColor: "#005699",
73 },
74 },
75 text: {
76 background: "#fff",
77 color: "#005699",
78 "&:hover": {
79 background: "#0056991A",
80 },
81 },
82 },
83 },
84 MuiTextField: {
85
86 },
87 MuiSwitch: {
88 defaultProps: {
89 disableRipple: true,
90 },
91 styleOverrides: {
92 root: {
93 width: "60px",
94 height: "30px",
95 padding: 0,
96 },
97 switchBase: {
98 padding: 0,
99 "&.Mui-checked": {
100 transform: `translateX(30px)`,
101 },
102 },
103 thumb: {
104 width: "28px",
105 height: "28px",
106 border: "1px solid #005699",
107 ".Mui-checked.Mui-checked &": {
108 width: "30px",
109 height: "30px",
110 border: "none",
111 }
112 },
113 track: {
114 backgroundColor: "#0056991A",
115 borderRadius: "30px",
116 opacity: 1,
117 ".Mui-checked.Mui-checked + &": {
118 backgroundColor: "#0056991A",
119 opacity: 1,
120 }
121 },
122 colorPrimary: {
123 color: "#fff",
124 "&.Mui-checked": {
125 color: "#005699",
126 },
127 },
128 },
129 },
130 MuiCssBaseline: {
131 styleOverrides: `
132 @font-face {
133 font-family: "Ubuntu";
134 src: url("./fonts/Ubuntu-Th.ttf");
135 font-weight: 100;
136 font-style: normal;
137 }
138 @font-face {
139 font-family: "Ubuntu";
140 src: url("./fonts/Ubuntu-L.ttf");
141 font-weight: 300;
142 font-style: normal;
143 }
144 @font-face {
145 font-family: "Ubuntu";
146 src: url("./fonts/Ubuntu-LI.ttf");
147 font-weight: 300;
148 font-style: italic;
149 }
150 @font-face {
151 font-family: "Ubuntu";
152 src: url("./fonts/Ubuntu-R.ttf");
153 font-weight: 400;
154 font-style: normal;
155 }
156 @font-face {
157 font-family: "Ubuntu";
158 src: url("./fonts/Ubuntu-RI.ttf");
159 font-weight: 400;
160 font-style: italic;
161 }
162 @font-face {
163 font-family: "Ubuntu";
164 src: url("./fonts/Ubuntu-M.ttf");
165 font-weight: 500;
166 font-style: normal;
167 }
168 @font-face {
169 font-family: "Ubuntu";
170 src: url("./fonts/Ubuntu-MI.ttf");
171 font-weight: 500;
172 font-style: italic;
173 }
174 @font-face {
175 font-family: "Ubuntu";
176 src: url("./fonts/Ubuntu-B.ttf");
177 font-weight: 700;
178 font-style: normal;
179 }
180 @font-face {
181 font-family: "Ubuntu";
182 src: url("./fonts/Ubuntu-BI.ttf");
183 font-weight: 700;
184 font-style: italic;
185 }
186 `,
187 },
188 },
189});