Skip to content

Commit

Permalink
fix: fix contrast ratio for response titles
Browse files Browse the repository at this point in the history
  • Loading branch information
stasiukanya authored and RomanHotsiy committed Jul 13, 2020
1 parent 0904b3f commit 47c6319
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const defaultTheme: ThemeInterface = {
contrastText: ({ colors }) => readableColor(colors.primary.main),
},
success: {
main: '#37d247',
main: '#1d8127',
light: ({ colors }) => lighten(colors.tonalOffset * 2, colors.success.main),
dark: ({ colors }) => darken(colors.tonalOffset, colors.success.main),
contrastText: ({ colors }) => readableColor(colors.success.main),
Expand All @@ -32,7 +32,7 @@ const defaultTheme: ThemeInterface = {
contrastText: '#ffffff',
},
error: {
main: '#e53935',
main: '#d41f1c',
light: ({ colors }) => lighten(colors.tonalOffset, colors.error.main),
dark: ({ colors }) => darken(colors.tonalOffset, colors.error.main),
contrastText: ({ colors }) => readableColor(colors.error.main),
Expand All @@ -52,11 +52,11 @@ const defaultTheme: ThemeInterface = {
responses: {
success: {
color: ({ colors }) => colors.success.main,
backgroundColor: ({ colors }) => transparentize(0.9, colors.success.main),
backgroundColor: ({ colors }) => transparentize(0.93, colors.success.main),
},
error: {
color: ({ colors }) => colors.error.main,
backgroundColor: ({ colors }) => transparentize(0.9, colors.error.main),
backgroundColor: ({ colors }) => transparentize(0.93, colors.error.main),
},
redirect: {
color: ({ colors }) => colors.warning.main,
Expand Down

0 comments on commit 47c6319

Please sign in to comment.