Skip to content

Commit

Permalink
refactor(web): change light mode colours
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Mar 18, 2023
1 parent bc43188 commit f4f769e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/app.theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { common, green } from '@mui/material/colors';
import { common } from '@mui/material/colors';
import { ThemeOptions } from '@mui/material';

export const APP_PRIMARY_COLOR = '#a6c8ff';
Expand All @@ -10,10 +10,10 @@ export const lightTheme: ThemeOptions = {
palette: {
mode: 'light',
primary: {
main: APP_PRIMARY_COLOR,
dark: green[700],
light: green[300],
contrastText: LIGHT_APP_TEXT_COLOR,
main: '#215fa6',
dark: '#3275c2',
light: '#215b9e',
contrastText: '#ffffff',
},
secondary: {
main: '#d32f2f',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/shared/components/SharedCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const SharedCard: React.FC<Props> = ({ data }) => {
TransitionProps={{ unmountOnExit: true }}
expanded={expanded === index}
onChange={handleChange(index)}
sx={{ backgroundColor: 'grey.900' }}
sx={(theme) => ({ backgroundColor: theme.palette.mode === 'dark' ? 'grey.900' : 'grey.100' })}
key={document.type === 'id' ? document.type : document.name}
>
<AccordionSummary expandIcon={<ExpandMore />}>
Expand Down

0 comments on commit f4f769e

Please sign in to comment.