aboutsummaryrefslogtreecommitdiff
path: root/modern/src/Theme.js
blob: 4d534a4303536f3a7aa0b21b79952f722be568a5 (plain)
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
import { createMuiTheme } from '@material-ui/core/styles';

const traccarPurple = '#333366';
const traccarGreen = '#4CAF50';
const traccarWhite = '#FFF';

export default createMuiTheme({
  palette: {  
    common: {
      purple: traccarPurple,
      green: traccarGreen
    },
    primary: {
      main: traccarPurple
    },
    secondary: {
      main: traccarGreen,
      contrastText: traccarWhite
    }
  },
  overrides: {
    MuiFormControl: {
      root: {
        height: '42px',
      }
    },    
    MuiFilledInput: {
      root: {
        height: '42px',
        borderRadius: '4px'
      },
      underline: {
        "&:before": {
          borderBottom: 'none',
        },
        "&:after": {
          borderBottom: 'none',
        },
        "&:hover:before": {
          borderBottom: 'none',
        },             
      }
    },
    MuiButton: {
      root: {
        height: '42px',
      }
    }
  } 
});