Extract theme creation

This commit is contained in:
Thomas Nordquist
2019-04-08 09:37:14 +02:00
parent db134dbc1c
commit 550d7014fa
2 changed files with 41 additions and 38 deletions

39
app/src/theme.ts Normal file
View File

@@ -0,0 +1,39 @@
import { createMuiTheme } from "@material-ui/core";
import { amber } from "@material-ui/core/colors";
const baseTheme = {
typography: {
body1: {
fontSize: '0.9rem',
},
},
}
const lightTheme = createMuiTheme({
...baseTheme,
palette: {
type: 'dark',
},
})
const darkTheme = createMuiTheme({
...baseTheme,
palette: {
type: 'light',
background: {
default: '#fafafa',
},
primary: {
main: '#931e2e',
},
secondary: amber,
action: {
disabledBackground: '#fafafa',
},
},
})
export const themes = {
lightTheme,
darkTheme,
}