1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.theme = exports.blueColor = exports.yellowColorLight = exports.yellowColor = exports.successColorLight = exports.successColor = exports.errorColorLight = exports.errorColor = exports.secondaryColorExtraLight = exports.secondaryColorLight = exports.secondaryColor = exports.secondaryColorDark = exports.primaryColor = void 0;
|
7 |
|
8 | var _react = _interopRequireDefault(require("react"));
|
9 |
|
10 | var _styles = require("@material-ui/core/styles");
|
11 |
|
12 | var _ArrowDropDown = _interopRequireDefault(require("@material-ui/icons/ArrowDropDown"));
|
13 |
|
14 | var _root;
|
15 |
|
16 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
17 |
|
18 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
19 |
|
20 | var primaryColor = '#ff6c3b';
|
21 | exports.primaryColor = primaryColor;
|
22 | var secondaryColorDark = '#414b56';
|
23 | exports.secondaryColorDark = secondaryColorDark;
|
24 | var secondaryColor = '#868F98';
|
25 | exports.secondaryColor = secondaryColor;
|
26 | var secondaryColorLight = '#D2D6D9';
|
27 | exports.secondaryColorLight = secondaryColorLight;
|
28 | var secondaryColorExtraLight = '#F5F5F5';
|
29 | exports.secondaryColorExtraLight = secondaryColorExtraLight;
|
30 | var errorColor = '#DC241F';
|
31 | exports.errorColor = errorColor;
|
32 | var errorColorLight = '#FC241F';
|
33 | exports.errorColorLight = errorColorLight;
|
34 | var successColor = '#068857';
|
35 | exports.successColor = successColor;
|
36 | var successColorLight = '#66CDAA';
|
37 | exports.successColorLight = successColorLight;
|
38 | var yellowColor = '#FFA500';
|
39 | exports.yellowColor = yellowColor;
|
40 | var yellowColorLight = '#FFB955';
|
41 | exports.yellowColorLight = yellowColorLight;
|
42 | var blueColor = '#6495ED';
|
43 | exports.blueColor = blueColor;
|
44 | var defaultTheme = (0, _styles.createMuiTheme)();
|
45 | var theme = {
|
46 | palette: {
|
47 | text: {
|
48 | primary: secondaryColorDark,
|
49 | secondary: primaryColor
|
50 | },
|
51 | primary: {
|
52 | main: primaryColor,
|
53 | contrastText: '#FFFFFF'
|
54 | },
|
55 | secondary: {
|
56 | light: secondaryColorLight,
|
57 | main: secondaryColor,
|
58 | dark: secondaryColorDark,
|
59 | contrastText: secondaryColorDark
|
60 | },
|
61 | error: {
|
62 | main: errorColor,
|
63 | light: errorColorLight
|
64 | },
|
65 | success: {
|
66 | main: successColor,
|
67 | light: successColorLight
|
68 | },
|
69 | yellow: {
|
70 | main: yellowColor,
|
71 | light: yellowColorLight
|
72 | },
|
73 | blue: {
|
74 | main: blueColor
|
75 | }
|
76 | },
|
77 | typography: {
|
78 | fontFamily: 'Lato,Roboto,sans-serif',
|
79 | fontWeight: 700,
|
80 | fontSize: 16,
|
81 | useNextVariants: true,
|
82 | h1: {
|
83 | fontWeight: 900,
|
84 | fontSize: ' 0.875rem',
|
85 | textTransform: 'uppercase'
|
86 | },
|
87 | h2: {
|
88 | fontWeight: 700,
|
89 | fontSize: '1.125rem'
|
90 | },
|
91 | h3: {
|
92 | fontWeight: 700,
|
93 | fontSize: ' 0.875rem'
|
94 | },
|
95 | h4: {
|
96 | fontWeight: 900,
|
97 | fontSize: '1rem'
|
98 | },
|
99 | h5: {
|
100 | fontFamily: 'Poppins !important',
|
101 | fontWeight: '500',
|
102 | fontSize: '1rem',
|
103 | color: secondaryColorDark
|
104 | },
|
105 | subtitle1: {
|
106 | fontWeight: 900,
|
107 | fontSize: '0.875rem'
|
108 | },
|
109 | body1: {
|
110 | fontWeight: 700,
|
111 | fontSize: '1rem'
|
112 | },
|
113 | body2: {
|
114 | fontWeight: 400,
|
115 | fontSize: '1rem'
|
116 | },
|
117 | caption: {
|
118 | fontWeight: 700,
|
119 | fontSize: '0.75rem'
|
120 | },
|
121 | button: {
|
122 | textTransform: 'none',
|
123 | fontWeight: 700,
|
124 | fontSize: '1rem'
|
125 | }
|
126 | },
|
127 | overrides: {
|
128 | MuiBottomNavigation: {
|
129 | root: {
|
130 | borderTop: "1px solid ".concat(secondaryColorLight)
|
131 | }
|
132 | },
|
133 | MuiBottomNavigationAction: {
|
134 | root: {
|
135 | padding: '0.5rem 0',
|
136 | maxWidth: 'none',
|
137 | '&:not(:last-child)': {
|
138 | '& $wrapper': {
|
139 | borderRight: "1px solid ".concat(secondaryColorLight, " !important")
|
140 | }
|
141 | },
|
142 | '&$selected': {
|
143 | '&>$wrapper': {
|
144 | color: primaryColor
|
145 | }
|
146 | }
|
147 | },
|
148 | wrapper: {
|
149 | padding: '0 0.75rem',
|
150 | color: secondaryColorDark
|
151 | },
|
152 | label: {
|
153 | fontWeight: 900,
|
154 | fontSize: '0.625rem',
|
155 | textTransform: 'uppercase',
|
156 | color: secondaryColorDark,
|
157 | '&$selected': {
|
158 | fontSize: '0.625rem'
|
159 | }
|
160 | }
|
161 | },
|
162 | MuiButton: {
|
163 | root: {
|
164 | borderRadius: 8,
|
165 | boxShadow: 'none !important',
|
166 | lineHeight: 1.25
|
167 | },
|
168 | label: {
|
169 | fontWeight: '700',
|
170 | fontSize: '1rem'
|
171 | }
|
172 | },
|
173 | MuiDialogActions: {
|
174 | root: {
|
175 | alignSelf: 'center',
|
176 | margin: '20px 0'
|
177 | }
|
178 | },
|
179 | MuiDialogTitle: {
|
180 | root: {
|
181 | textTransform: 'uppercase',
|
182 | fontSize: '0.875rem',
|
183 | fontWeight: 900,
|
184 | color: secondaryColorDark,
|
185 | textAlign: 'center',
|
186 | marginBottom: 20
|
187 | }
|
188 | },
|
189 | MuiDrawer: {
|
190 | paper: {
|
191 | padding: '10px 20px 0 20px',
|
192 | width: '80%',
|
193 | maxWidth: 350
|
194 | }
|
195 | },
|
196 | MuiExpansionPanel: {
|
197 | root: {
|
198 | boxShadow: 'none',
|
199 | '&:before': {
|
200 | content: null
|
201 | },
|
202 | border: "1px solid ".concat(secondaryColorLight),
|
203 | borderRadius: 5,
|
204 | marginBottom: '1rem',
|
205 | '&:last-child': {
|
206 | marginBottom: 0
|
207 | }
|
208 | }
|
209 | },
|
210 | MuiExpansionPanelDetails: {
|
211 | root: {
|
212 | paddingLeft: '0.5rem',
|
213 | paddingRight: '0.5rem'
|
214 | }
|
215 | },
|
216 | MuiExpansionPanelSummary: {
|
217 | root: {
|
218 | fontWeight: 900,
|
219 | fontSize: '1rem',
|
220 | minHeight: null,
|
221 | paddingLeft: '0.5rem',
|
222 | '&$expanded': {
|
223 | minHeight: 0,
|
224 | borderBottom: 'none'
|
225 | }
|
226 | },
|
227 | content: {
|
228 | margin: '0.5rem 0',
|
229 | '&$expanded': {
|
230 | margin: '0.5rem 0'
|
231 | }
|
232 | }
|
233 | },
|
234 | MuiFormControlLabel: {
|
235 | label: {
|
236 | color: secondaryColorDark,
|
237 | fontSize: '0.875rem',
|
238 | fontWeight: 700
|
239 | }
|
240 | },
|
241 | MuiFormHelperText: {
|
242 | root: {
|
243 | fontSize: '0.75rem',
|
244 | fontWeight: 700,
|
245 | margin: '0.5rem 1.34rem 0'
|
246 | }
|
247 | },
|
248 | MuiFormLabel: {
|
249 | root: {
|
250 | color: secondaryColorDark,
|
251 | fontSize: '0.875rem',
|
252 | fontWeight: 700
|
253 | }
|
254 | },
|
255 | MuiInputAdornment: {
|
256 | positionStart: {
|
257 | marginLeft: 15
|
258 | }
|
259 | },
|
260 | MuiInputBase: {
|
261 | root: {
|
262 | transition: 'border-color 0.3s ease',
|
263 | margin: '0px !important',
|
264 | caretColor: primaryColor,
|
265 | borderRadius: 8,
|
266 | border: "2px solid ".concat(secondaryColorLight),
|
267 | '&$focused': {
|
268 | borderColor: secondaryColorDark
|
269 | },
|
270 | '&$disabled': {
|
271 | borderColor: 'transparent',
|
272 |
|
273 | backgroundColor: secondaryColorExtraLight
|
274 | },
|
275 | '&$error': {
|
276 | borderColor: errorColor
|
277 | }
|
278 | },
|
279 | input: {
|
280 | padding: '1.33rem 1rem',
|
281 | fontSize: '0.875rem',
|
282 | lineHeight: '1.25',
|
283 | fontWeight: 700
|
284 | },
|
285 | inputType: {
|
286 | height: 'auto'
|
287 | }
|
288 | },
|
289 | MuiInputLabel: {
|
290 | shrink: {
|
291 | fontWeight: 700,
|
292 | fontSize: '0.875rem',
|
293 | padding: '0 0.25rem',
|
294 | backgroundColor: '#FFFFFF',
|
295 | transform: 'translate(0.8rem, -0.5rem)'
|
296 | },
|
297 | root: {
|
298 | zIndex: 1,
|
299 |
|
300 | color: secondaryColorDark,
|
301 | '&$focused': {
|
302 | color: secondaryColorDark,
|
303 | '&$error': {
|
304 | color: errorColor
|
305 | }
|
306 | },
|
307 | '&$disabled': {
|
308 | color: secondaryColorDark,
|
309 | backgroundColor: 'transparent',
|
310 | '&$error': {
|
311 | backgroundColor: '#FFFFFF',
|
312 | color: errorColor
|
313 | }
|
314 | }
|
315 | }
|
316 | },
|
317 | MuiRadio: {
|
318 | colorSecondary: {
|
319 | color: secondaryColorDark,
|
320 | '&$checked': {
|
321 | color: secondaryColorDark
|
322 | }
|
323 | }
|
324 | },
|
325 | MuiSnackbarContent: {
|
326 | root: {
|
327 | backgroundColor: secondaryColorDark,
|
328 | width: 450
|
329 | }
|
330 | },
|
331 | MuiSvgIcon: {
|
332 | fontSizeSmall: {
|
333 | fontSize: '1rem'
|
334 | }
|
335 | },
|
336 | MuiSwitch: {
|
337 | bar: {
|
338 | backgroundColor: '#D2D6D9',
|
339 | width: '3rem',
|
340 | height: '1.5rem',
|
341 | borderRadius: '0.75rem',
|
342 |
|
343 | marginTop: '-0.75rem',
|
344 |
|
345 | marginLeft: '-1.375rem',
|
346 |
|
347 | opacity: 1
|
348 | },
|
349 | checked: {},
|
350 | icon: {
|
351 | width: '1rem',
|
352 | height: '1rem',
|
353 | color: 'white'
|
354 | },
|
355 | switchBase: {
|
356 | '&$checked': {
|
357 | transform: 'translateX(1.2rem)',
|
358 | '& + $bar': {
|
359 | backgroundColor: primaryColor,
|
360 | opacity: 1
|
361 | }
|
362 | }
|
363 | }
|
364 | },
|
365 | MuiTableCell: {
|
366 | head: {
|
367 | fontSize: '0.875rem',
|
368 | fontWeight: 700,
|
369 | color: secondaryColor
|
370 | },
|
371 | body: {
|
372 | fontSize: '0.875rem',
|
373 | fontWeight: 700,
|
374 | color: secondaryColorDark
|
375 | },
|
376 | root: {
|
377 | paddingTop: '1rem',
|
378 | paddingBottom: '1rem'
|
379 | }
|
380 | },
|
381 | MuiTablePagination: {
|
382 | selectIcon: {
|
383 | top: null,
|
384 | right: -5
|
385 | },
|
386 | input: {
|
387 | border: 'none'
|
388 | },
|
389 | toolbar: _defineProperty({}, defaultTheme.breakpoints.down('xs'), {
|
390 | padding: '0 !important',
|
391 | display: 'flex',
|
392 | flexFlow: 'row wrap',
|
393 | justifyContent: 'center',
|
394 | height: 'fit-content'
|
395 | }),
|
396 | actions: _defineProperty({}, defaultTheme.breakpoints.down('xs'), {
|
397 | width: '100%',
|
398 | marginLeft: 0,
|
399 | display: 'flex',
|
400 | justifyContent: 'center'
|
401 | }),
|
402 | select: {
|
403 | fontSize: '0.75rem'
|
404 | }
|
405 | },
|
406 | MuiTab: {
|
407 | root: (_root = {
|
408 | padding: '0 1.5rem 0 1.5rem',
|
409 | borderRight: '1px solid #ccc'
|
410 | }, _defineProperty(_root, defaultTheme.breakpoints.down('sm'), {
|
411 | flexGrow: 1
|
412 | }), _defineProperty(_root, '&$selected', {
|
413 | backgroundColor: 'white'
|
414 | }), _root),
|
415 | wrapper: {
|
416 | flexDirection: 'row'
|
417 | },
|
418 | labelContainer: _defineProperty({
|
419 | width: 'fit-content',
|
420 | paddingLeft: '0.5rem !important',
|
421 | paddingRight: '0.5rem !important'
|
422 | }, defaultTheme.breakpoints.down('sm'), {
|
423 | display: 'none'
|
424 | }),
|
425 | labelIcon: _defineProperty({
|
426 | paddingTop: 0,
|
427 | minHeight: 64
|
428 | }, defaultTheme.breakpoints.down('sm'), {
|
429 | minHeight: 48
|
430 | })
|
431 | },
|
432 | MuiTabs: {
|
433 | root: {
|
434 | background: '#f2f2f2',
|
435 | boxShadow: 'inset 0 -1px #ccc'
|
436 | },
|
437 | indicator: {
|
438 | opacity: 0
|
439 | }
|
440 | },
|
441 | MuiToolbar: {
|
442 | root: {
|
443 | backgroundColor: 'white',
|
444 | color: secondaryColorDark
|
445 | },
|
446 | regular: {
|
447 | minHeight: '64px !important'
|
448 | }
|
449 | }
|
450 | },
|
451 | props: {
|
452 | MuiDialogTitle: {
|
453 | disableTypography: true
|
454 | },
|
455 | MuiExpansionPanelSummary: {
|
456 | expandIcon: _react["default"].createElement(_ArrowDropDown["default"], null)
|
457 | },
|
458 | MuiInput: {
|
459 | disableUnderline: true
|
460 | },
|
461 | MuiInputLabel: {
|
462 | shrink: true
|
463 | },
|
464 | MuiFormControl: {
|
465 | fullWidth: true
|
466 | },
|
467 | MuiSwitch: {
|
468 | color: 'default'
|
469 | }
|
470 | },
|
471 | customClasses: {
|
472 | secondaryButton: {
|
473 | backgroundColor: secondaryColorDark,
|
474 | color: '#FFFFFF',
|
475 | '&:hover': {
|
476 | backgroundColor: secondaryColor
|
477 | }
|
478 | },
|
479 | shortButton: {
|
480 | paddingTop: '0.59rem',
|
481 | paddingBottom: '0.59rem'
|
482 | },
|
483 | tallButton: {
|
484 | paddingTop: '1.25rem',
|
485 | paddingBottom: '1.25rem'
|
486 | },
|
487 | tertiaryButton: {
|
488 | backgroundColor: secondaryColorLight,
|
489 | color: secondaryColorDark
|
490 | },
|
491 | limitedSizeButton: _defineProperty({}, defaultTheme.breakpoints.up('sm'), {
|
492 | maxWidth: 350
|
493 | })
|
494 | }
|
495 | };
|
496 | exports.theme = theme; |
\ | No newline at end of file |