-
Notifications
You must be signed in to change notification settings - Fork 7
/
theme.js
108 lines (104 loc) · 2.17 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import { createMuiTheme } from "@material-ui/core/styles";
import createBreakpoints from "@material-ui/core/styles/createBreakpoints";
const breakpoints = createBreakpoints({});
const mainBlack = "#000";
const mainWhite = "#fff";
const mainRed = "#e50914";
const blue = "#757ce8";
const orange = "#ffa00a";
// Create a theme instance.
const theme = createMuiTheme({
palette: {
common: {
black: mainBlack,
white: mainWhite,
blue: blue,
red: mainRed,
orange: orange,
},
primary: {
main: mainBlack,
},
secondary: {
main: mainWhite,
},
info: {
main: blue,
},
error: {
main: orange,
},
},
typography: {
h1: {
color: mainWhite,
fontSize: "3rem",
fontWeight: 500,
[breakpoints.down("sm")]: {
fontSize: "2.5rem",
},
[breakpoints.down("xs")]: {
fontSize: "1.75rem",
},
},
h2: {
color: mainWhite,
fontSize: "1.75rem",
fontWeight: 400,
[breakpoints.down("sm")]: {
fontSize: "1.5rem",
},
[breakpoints.down("xs")]: {
fontSize: "1.25rem",
},
},
h3: {
color: mainWhite,
fontSize: "1.5rem",
fontWeight: 300,
[breakpoints.down("sm")]: {
fontSize: "1.25rem",
},
[breakpoints.down("xs")]: {
fontSize: "1rem",
},
},
a: {
color: `${mainWhite} !important`,
},
body1: {
color: mainWhite,
fontSize: "22px",
[breakpoints.down("sm")]: {
fontSize: "20px",
},
[breakpoints.down("xs")]: {
fontSize: "18px",
},
},
body2: {
color: mainWhite,
fontSize: "18px",
[breakpoints.down("sm")]: {
fontSize: "16px",
},
[breakpoints.down("xs")]: {
fontSize: "14px",
},
},
button: {
background: mainRed,
textTransform: "none",
"&.MuiButton-text": {
padding: " 6px 16px !important",
},
"&.MuiButton-root:hover": {
backgroundColor: `#fd2b36 !important`,
},
"& .MuiButton-label": {
color: `${mainWhite} !important`,
},
},
},
});
export default theme;