update jamespong14205,
This commit is contained in:
37
task1/project/003_src/client/config/theme.js
Normal file
37
task1/project/003_src/client/config/theme.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import { red } from '@mui/material/colors';
|
||||
import { createTheme } from '@mui/material/styles';
|
||||
|
||||
// Create a theme instance.
|
||||
const theme = createTheme({
|
||||
palette: {
|
||||
primary: {
|
||||
main: '#556cd6',
|
||||
},
|
||||
secondary: {
|
||||
main: '#19857b',
|
||||
},
|
||||
error: {
|
||||
main: red.A400,
|
||||
},
|
||||
},
|
||||
components: {
|
||||
MuiTypography: {
|
||||
defaultProps: {
|
||||
variantMapping: {
|
||||
h1: 'h2',
|
||||
h2: 'h2',
|
||||
h3: 'h2',
|
||||
h4: 'h2',
|
||||
h5: 'h2',
|
||||
h6: 'h2',
|
||||
subtitle1: 'h2',
|
||||
subtitle2: 'h2',
|
||||
body1: 'span',
|
||||
body2: 'span',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default theme;
|
Reference in New Issue
Block a user