diff --git a/src/constants/styles/base.ts b/src/constants/styles/base.ts index bbff6b0..8251ffa 100644 --- a/src/constants/styles/base.ts +++ b/src/constants/styles/base.ts @@ -64,6 +64,7 @@ export enum ColorToken { /** Maps opacity to corresponding hex value */ export enum OpacityToken { Opacity16 = '29', + Opacity20 = '33', Opacity66 = 'A8', Opacity90 = 'E6', } diff --git a/src/styles/themes.ts b/src/styles/themes.ts index 0ebd6fc..ec96986 100644 --- a/src/styles/themes.ts +++ b/src/styles/themes.ts @@ -14,8 +14,8 @@ const ClassicTheme: ThemeColors = { layer7: ColorToken.GrayBlue0, borderDefault: ColorToken.GrayBlue2, - borderDestructive: ColorToken.Red2, - borderButton: ColorToken.White, + borderDestructive: generateFadedColorVariant(ColorToken.Red2, OpacityToken.Opacity20), + borderButton: generateFadedColorVariant(ColorToken.White, OpacityToken.Opacity20), textPrimary: ColorToken.LightGray2, textSecondary: ColorToken.GrayPurple1, @@ -63,8 +63,8 @@ const DarkTheme: ThemeColors = { layer7: ColorToken.DarkGray2, borderDefault: ColorToken.DarkGray4, - borderDestructive: ColorToken.Red0, - borderButton: ColorToken.White, + borderDestructive: generateFadedColorVariant(ColorToken.Red0, OpacityToken.Opacity20), + borderButton: generateFadedColorVariant(ColorToken.White, OpacityToken.Opacity20), textPrimary: ColorToken.LightGray0, textSecondary: ColorToken.MediumGray0, @@ -112,8 +112,8 @@ const LightTheme: ThemeColors = { layer7: ColorToken.MediumGray1, borderDefault: ColorToken.LightGray10, - borderDestructive: ColorToken.Red1, - borderButton: ColorToken.Black, + borderDestructive: generateFadedColorVariant(ColorToken.Red1, OpacityToken.Opacity20), + borderButton: generateFadedColorVariant(ColorToken.Black, OpacityToken.Opacity20), textPrimary: ColorToken.DarkGray12, textSecondary: ColorToken.DarkGray3,