diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-05 17:48:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-05 17:48:00 -0700 |
commit | 89928e3a9a9356b96c2d02c9682161295ad73641 (patch) | |
tree | b3d250a62a39fe196409fabbcda1058cb15fc375 /modern/src/common/theme | |
parent | 834d57c9eb14fff48f4444af198f0a10ab1b72a2 (diff) | |
download | trackermap-web-89928e3a9a9356b96c2d02c9682161295ad73641.tar.gz trackermap-web-89928e3a9a9356b96c2d02c9682161295ad73641.tar.bz2 trackermap-web-89928e3a9a9356b96c2d02c9682161295ad73641.zip |
Support position color (fix #805)
Diffstat (limited to 'modern/src/common/theme')
-rw-r--r-- | modern/src/common/theme/palette.js | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/modern/src/common/theme/palette.js b/modern/src/common/theme/palette.js index 1ef57713..e0d9c35f 100644 --- a/modern/src/common/theme/palette.js +++ b/modern/src/common/theme/palette.js @@ -2,23 +2,28 @@ import { amber, grey, green, indigo, red, common, } from '@mui/material/colors'; +const colors = { + white: common.white, + background: grey[50], + primary: indigo[900], + secondary: green[500], + positive: green[500], + medium: amber[700], + negative: red[500], + neutral: grey[500], + geometry: '#3bb2d0', +}; + export default { background: { - default: grey[50], + default: colors.background, }, primary: { - main: indigo[900], + main: colors.primary, }, secondary: { - main: green[500], - contrastText: common.white, - }, - colors: { - white: common.white, - positive: green[500], - medium: amber[700], - negative: red[500], - neutral: grey[500], - geometry: '#3bb2d0', + main: colors.secondary, + contrastText: colors.white, }, + colors, }; |