From 7b718fad77c1f6f75b0c0e7ae33f33acd92c907d Mon Sep 17 00:00:00 2001 From: Tina Zheng Date: Mon, 6 Jan 2025 23:44:02 -0500 Subject: [PATCH] use existing css var instead of new yellow 0 --- src/styles/globalStyle.ts | 1 - src/styles/themes.ts | 1 - src/views/dialogs/DepositDialog2/RouteOptions.tsx | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/styles/globalStyle.ts b/src/styles/globalStyle.ts index 78162c4d9..4c865424e 100644 --- a/src/styles/globalStyle.ts +++ b/src/styles/globalStyle.ts @@ -6,7 +6,6 @@ export const GlobalStyle = createGlobalStyle` --color-black: ${({ theme }) => theme.black}; --color-green: ${({ theme }) => theme.green}; --color-red: ${({ theme }) => theme.red}; - --color-yellow-0: ${({ theme }) => theme.yellow0}; --color-white-faded: ${({ theme }) => theme.whiteFaded}; diff --git a/src/styles/themes.ts b/src/styles/themes.ts index dcf98483d..4e1ed9d01 100644 --- a/src/styles/themes.ts +++ b/src/styles/themes.ts @@ -10,7 +10,6 @@ const ClassicThemeBase: () => ThemeColorBase = () => ({ white: ColorToken.White, green: ColorToken.Green3, red: ColorToken.Red2, - yellow0: ColorToken.Yellow0, whiteFaded: generateFadedColorVariant(ColorToken.White, OpacityToken.Opacity16), diff --git a/src/views/dialogs/DepositDialog2/RouteOptions.tsx b/src/views/dialogs/DepositDialog2/RouteOptions.tsx index 8a590ba0d..19bdc08a8 100644 --- a/src/views/dialogs/DepositDialog2/RouteOptions.tsx +++ b/src/views/dialogs/DepositDialog2/RouteOptions.tsx @@ -56,8 +56,8 @@ export const RouteOptions = ({ style={{ color: selectedSpeed === 'fast' && !isLoading - ? 'var(--color-yellow-0)' - : 'var(--color-layer-2)', + ? 'var(--color-favorite)' + : 'var(--color-text-0)', }} >