Skip to content

Commit

Permalink
revised to use primary.main
Browse files Browse the repository at this point in the history
  • Loading branch information
atGit2021 committed Oct 2, 2024
1 parent eb1b80c commit fcb0ae8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/Changeset/PropertyDiff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const useStyles = makeStyles()(({ palette, shape, spacing }) => ({
},
current: {
color: palette.primary.dark,
background: fade(palette.primary.light, 0.5),
background: fade(palette.primary.main, 0.5),
},
}));

Expand Down
2 changes: 1 addition & 1 deletion src/scenes/Locations/Detail/LocationDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const LocationDetail = () => {
fill: theme.palette.primary.main,
},
'#Highlight_Circle': {
fill: theme.palette.primary.light,
fill: theme.palette.primary.main,
},
})}
/>
Expand Down
6 changes: 2 additions & 4 deletions src/theme/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ export const appComponents = ({
shape,
}: Theme): Components<Theme> => {
const dark = palette.mode === 'dark';
const primaryColorForText = dark
? palette.primary.light
: palette.primary.main;
const primaryColorForText = palette.primary.main;
return {
MuiAppBar: {
defaultProps: {
Expand Down Expand Up @@ -144,7 +142,7 @@ export const appComponents = ({
MuiLink: {
defaultProps: {
underline: 'hover',
color: dark ? 'primary.light' : 'primary.main',
color: 'primary.main',
},
},
MuiToggleButtonGroup: {
Expand Down
5 changes: 1 addition & 4 deletions src/theme/palette.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PaletteColor, PaletteColorOptions } from '@mui/material';
import { grey } from '@mui/material/colors';
import { lighten, PaletteOptions } from '@mui/material/styles';
import { PaletteOptions } from '@mui/material/styles';
import { Role } from '~/api/schema/schema.graphql';

export const createPalette = ({ dark }: { dark?: boolean }) => {
Expand All @@ -14,9 +14,6 @@ export const createPalette = ({ dark }: { dark?: boolean }) => {
primary: {
main: mainGreen,
contrastText: '#ffffff',
// TODO could not be needed anymore with change to primary green
// default is lighten main color by 0.2
light: lighten(mainGreen, 0.4),
},
secondary: {
main: dark ? grey[50] : '#3c444e',
Expand Down

0 comments on commit fcb0ae8

Please sign in to comment.