add banner to theme palette

This commit is contained in:
Twisha Saraiya
2020-07-15 12:27:45 +05:30
parent 56d4c6a83e
commit b6c2e8173b
5 changed files with 23 additions and 21 deletions
+12 -15
View File
@@ -15,7 +15,7 @@
*/
import { createTheme } from './baseTheme';
import { yellow } from '@material-ui/core/colors';
import { blue, yellow } from '@material-ui/core/colors';
export const lightTheme = createTheme({
palette: {
@@ -39,14 +39,11 @@ export const lightTheme = createTheme({
},
},
primary: {
main: '#2E77D0',
main: blue[500],
},
error: {
main: '#E22134',
dark: '#E22134',
},
text: {
secondary: '#000000',
banner: {
info: '#2E77D0',
error: '#E22134',
},
border: '#E6E6E6',
textContrast: '#000000',
@@ -95,14 +92,14 @@ export const darkTheme = createTheme({
},
},
primary: {
main: '#2E77D0',
main: blue[500],
},
error: {
main: '#E22134',
dark: '#E22134',
},
text: {
secondary: '#000000',
banner: {
info: '2E77D0',
error: 'E22134',
link: {
default: '#000000',
},
},
border: '#E6E6E6',
textContrast: '#FFFFFF',
+4
View File
@@ -58,6 +58,10 @@ type PaletteAdditions = {
icon: string;
background: string;
};
banner: {
info: string;
error: string;
};
};
export type BackstagePalette = Palette & PaletteAdditions;