aboutsummaryrefslogtreecommitdiff
path: root/modern/src/Theme.js
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-05-03 17:45:13 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-05-03 17:45:13 +0530
commit73623e1eccde7160fa83b79ad96ae744fa357a32 (patch)
treebea85f23bb787abe67fac6a34f641a7e9d1af1a7 /modern/src/Theme.js
parent17e1f8c7b67a36c4e9384b7c7b930b68c8bfd6f4 (diff)
downloadetbsa-traccar-web-73623e1eccde7160fa83b79ad96ae744fa357a32.tar.gz
etbsa-traccar-web-73623e1eccde7160fa83b79ad96ae744fa357a32.tar.bz2
etbsa-traccar-web-73623e1eccde7160fa83b79ad96ae744fa357a32.zip
Initial Login Screen Draft
Diffstat (limited to 'modern/src/Theme.js')
-rw-r--r--modern/src/Theme.js50
1 files changed, 50 insertions, 0 deletions
diff --git a/modern/src/Theme.js b/modern/src/Theme.js
new file mode 100644
index 0000000..4d534a4
--- /dev/null
+++ b/modern/src/Theme.js
@@ -0,0 +1,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',
+ }
+ }
+ }
+});