-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.ts
73 lines (68 loc) · 1.22 KB
/
theme.ts
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
import { createMuiTheme } from '@material-ui/core/styles'
declare module '@material-ui/core/styles/createMuiTheme' {
interface Theme {
border: {
light: string
}
flex: {
center: object
}
}
// allow configuration using `createMuiTheme`
interface ThemeOptions {
border?: {
light?: string
}
flex?: {
center?: object
}
}
}
// old orange: D55A00
const colors = {
// #c81732 vermelho
// #b33200 vermelho alaranjado
// #a93e00 vermelho alaranjado
primary: '#b3000b',
secondary: '#071E22',
}
const theme = createMuiTheme({
palette: {
type: 'light',
divider: 'rgba(0, 0, 0, 0.10)',
primary: {
main: colors.primary,
},
secondary: {
main: colors.secondary,
},
contrastThreshold: 3,
tonalOffset: 0.15,
},
props: {
MuiSvgIcon: {
color: 'primary',
},
MuiButton: {
color: 'primary',
},
},
overrides: {
MuiInputBase: {
input: {
caretColor: colors.primary,
},
},
},
border: {
light: '1px solid rgba(0, 0, 0, 0.10)',
},
flex: {
center: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
},
},
})
export default theme