From 47c63192062d87b2b3205b915472930eaff6cc03 Mon Sep 17 00:00:00 2001 From: Anya Stasiuk Date: Tue, 2 Jun 2020 16:27:00 +0300 Subject: [PATCH] fix: fix contrast ratio for response titles --- src/theme.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/theme.ts b/src/theme.ts index f6554cb051..6679f9d521 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -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), @@ -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), @@ -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,