From 43627296a496f846555cbea90edccae24886047b Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Fri, 3 Jan 2025 10:13:38 +0530 Subject: [PATCH] fix: Reverted to use non theme based CSS values --- packages/components/src/text/hook.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/components/src/text/hook.ts b/packages/components/src/text/hook.ts index 243b00202460eb..76314686eb963b 100644 --- a/packages/components/src/text/hook.ts +++ b/packages/components/src/text/hook.ts @@ -104,9 +104,10 @@ export default function useText( const isOptimalTextColorDark = getOptimalTextShade( optimizeReadabilityFor ) === 'dark'; + // Should not use theme colors sx.optimalTextColor = isOptimalTextColorDark - ? css( { color: COLORS.theme.foreground } ) - : css( { color: COLORS.theme.foregroundInverted } ); + ? css( { color: COLORS.gray[ 900 ] } ) + : css( { color: COLORS.white } ); } return cx(