diff options
author | Anton Dubik <anton.dubik33@gmail.com> | 2020-01-04 01:19:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-04 01:19:50 +0300 |
commit | 1a3c02e2fb77d7cc253d05b5b198c1fe75279926 (patch) | |
tree | c044f7cd6c2b2a829e09372859f25efafe54b440 /src/theme.js | |
parent | e41a613afa7fba8c89c6d88a3607bfc6e5081bb7 (diff) | |
parent | a7b17c6f460031c8caf0b3f6173b817b4a6cc8fa (diff) | |
download | chrono-cube-ui-1a3c02e2fb77d7cc253d05b5b198c1fe75279926.tar.gz |
Merge pull request #14 from Eug-VS/theme
Create theme and style existing components
Diffstat (limited to 'src/theme.js')
-rw-r--r-- | src/theme.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/theme.js b/src/theme.js new file mode 100644 index 0000000..350fc49 --- /dev/null +++ b/src/theme.js @@ -0,0 +1,40 @@ +import { createMuiTheme } from '@material-ui/core/styles' +import createPalette from "@material-ui/core/styles/createPalette"; + +const colorScheme = { + dark: '#232020', + grey: '#3a3535', + white: '#f4f4f4', + orange: '#ff7315', +}; + +const palette = createPalette({ + primary: { + main: colorScheme.dark, + }, + secondary: { + main: colorScheme.grey, + }, + white: { + main: colorScheme.white, + }, + orange: { + main: colorScheme.orange, + }, +}); + +palette.background = { + default: palette.secondary.main, + paper: palette.secondary.dark, +}; + +palette.text = { + primary: palette.white.main, + secondary: palette.orange.main, +}; + +const theme = createMuiTheme({ + palette +}); + +export default theme; |