Add textContrast as color for white/black text in dark/light theme

This commit is contained in:
Himanshu Mishra
2020-04-20 17:59:23 +09:00
parent c2e2c9363f
commit f293d9fb0e
3 changed files with 4 additions and 1 deletions
@@ -31,7 +31,7 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
transform: 'translate(-50%, -60%)',
fontSize: 45,
fontWeight: 'bold',
color: theme.palette.textSubtle,
color: theme.palette.textContrast,
},
circle: {
width: '80%',
+2
View File
@@ -41,6 +41,7 @@ export const lightTheme = createTheme({
main: blue[500],
},
border: '#E6E6E6',
textContrast: '#000000',
textVerySubtle: '#DDD',
textSubtle: '#6E6E6E',
highlight: '#FFFBCC',
@@ -80,6 +81,7 @@ export const darkTheme = createTheme({
main: blue[500],
},
border: '#E6E6E6',
textContrast: '#FFFFFF',
textVerySubtle: '#DDD',
textSubtle: '#6E6E6E',
highlight: '#FFFBCC',
+1
View File
@@ -30,6 +30,7 @@ type PaletteAdditions = {
background: string;
};
border: string;
textContrast: string;
textVerySubtle: string;
textSubtle: string;
highlight: string;