-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.js
75 lines (75 loc) · 2.01 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
74
75
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-ignore
var styles_1 = require("@material-ui/core/styles");
var colors_1 = __importDefault(require("./colors"));
var shadows_1 = __importDefault(require("./shadows"));
var theme = styles_1.createTheme({
palette: {
primary: {
main: colors_1.default.primary,
},
secondary: {
main: colors_1.default.secondary,
},
background: {
default: colors_1.default.background,
},
},
// @ts-ignore
shadows: shadows_1.default(colors_1.default.grey),
props: {
MuiButton: {
disableElevation: true,
variant: "contained",
color: "primary",
size: "small",
},
MuiTextField: {
variant: "outlined",
margin: "dense",
size: "small",
},
MuiFormControl: {
variant: "outlined",
margin: "dense",
},
},
overrides: {
MuiInputBase: {
input: {
"&$disabled": {
background: "#dedede",
cursor: "not-allowed !important",
},
},
},
MuiButton: {
root: {
textTransform: "initial",
fontWeight: 400,
},
containedPrimary: {
color: "white",
},
outlinedPrimary: {
color: colors_1.default.secondary,
},
containedSecondary: {
color: "white",
},
},
MuiTypography: {
h1: {
fontSize: "1.25rem !important",
fontWeight: 500,
fontFamily: "Raleway",
color: colors_1.default.grey,
},
},
},
});
exports.default = theme;