style: add eslint configuration and fixed linter issues (#35)
* style: add eslint configuration as per bee-js * chore: add `plugin:react/reocommended` in `.eslintrc` Co-authored-by: nugaon <50576770+nugaon@users.noreply.github.com> * chore: add `consistent` to `array-bracket-newline` as per review * style: after automatic fixes with `npm run lint` * style: fixed all linter errors * refactor: fixed all linter warnings * chore: added missing new line at end of `.prettierrc` file Co-authored-by: nugaon <50576770+nugaon@users.noreply.github.com>
This commit is contained in:
+33
-49
@@ -1,4 +1,4 @@
|
||||
import { createMuiTheme } from '@material-ui/core/styles';
|
||||
import { createMuiTheme } from '@material-ui/core/styles'
|
||||
|
||||
declare module '@material-ui/core/styles/createPalette' {
|
||||
interface TypeBackground {
|
||||
@@ -7,54 +7,38 @@ declare module '@material-ui/core/styles/createPalette' {
|
||||
}
|
||||
|
||||
export const lightTheme = createMuiTheme({
|
||||
palette: {
|
||||
type: "light",
|
||||
background: {
|
||||
default: '#fafafa',
|
||||
},
|
||||
primary: {
|
||||
main: '#6a6a6a',
|
||||
},
|
||||
secondary: {
|
||||
main: '#333333',
|
||||
},
|
||||
palette: {
|
||||
type: 'light',
|
||||
background: {
|
||||
default: '#fafafa',
|
||||
},
|
||||
typography: {
|
||||
fontFamily: [
|
||||
'Work Sans',
|
||||
'Montserrat',
|
||||
'Nunito',
|
||||
'Roboto',
|
||||
'"Helvetica Neue"',
|
||||
'Arial',
|
||||
'sans-serif'
|
||||
].join(','),
|
||||
}
|
||||
});
|
||||
|
||||
primary: {
|
||||
main: '#6a6a6a',
|
||||
},
|
||||
secondary: {
|
||||
main: '#333333',
|
||||
},
|
||||
},
|
||||
typography: {
|
||||
fontFamily: ['Work Sans', 'Montserrat', 'Nunito', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif'].join(','),
|
||||
},
|
||||
})
|
||||
|
||||
export const darkTheme = createMuiTheme({
|
||||
palette: {
|
||||
type: "dark",
|
||||
background: {
|
||||
default: '#0d1117',
|
||||
paper: '#161b22',
|
||||
},
|
||||
primary: {
|
||||
main: '#dd7700',
|
||||
},
|
||||
secondary: {
|
||||
main: '#1f2937',
|
||||
},
|
||||
palette: {
|
||||
type: 'dark',
|
||||
background: {
|
||||
default: '#0d1117',
|
||||
paper: '#161b22',
|
||||
},
|
||||
typography: {
|
||||
fontFamily: [
|
||||
'Work Sans',
|
||||
'Montserrat',
|
||||
'Nunito',
|
||||
'Roboto',
|
||||
'"Helvetica Neue"',
|
||||
'Arial',
|
||||
'sans-serif'
|
||||
].join(','),
|
||||
}
|
||||
});
|
||||
primary: {
|
||||
main: '#dd7700',
|
||||
},
|
||||
secondary: {
|
||||
main: '#1f2937',
|
||||
},
|
||||
},
|
||||
typography: {
|
||||
fontFamily: ['Work Sans', 'Montserrat', 'Nunito', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif'].join(','),
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user