refactor: extract themes to their own folder

This commit is contained in:
Deluan
2020-03-31 09:05:46 -04:00
parent 1e0a79ebb7
commit 500207f7b8
7 changed files with 46 additions and 43 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import LockIcon from '@material-ui/icons/Lock'
import { Notification, useLogin, useNotify, useTranslate } from 'react-admin'
import { LightTheme } from './Themes'
import { LightTheme } from '../themes'
const useStyles = makeStyles((theme) => ({
main: {
-39
View File
@@ -1,39 +0,0 @@
import blue from '@material-ui/core/colors/blue'
export const DarkTheme = {
palette: {
primary: {
main: '#90caf9'
},
secondary: blue,
type: 'dark'
},
overrides: {
MuiFormGroup: {
root: {
color: 'white'
}
}
}
}
export const LightTheme = {
palette: {
secondary: {
light: '#5f5fc4',
main: '#283593',
dark: '#001064',
contrastText: '#fff'
}
},
overrides: {
MuiFilledInput: {
root: {
backgroundColor: 'rgba(0, 0, 0, 0.04)',
'&$disabled': {
backgroundColor: 'rgba(0, 0, 0, 0.04)'
}
}
}
}
}
+1 -2
View File
@@ -1,5 +1,4 @@
import Login from './Login'
import Layout from './Layout'
import { DarkTheme, LightTheme } from './Themes'
export { Layout, Login, DarkTheme, LightTheme }
export { Layout, Login }