Skip to content

Commit

Permalink
fix: Reverted to use non theme based CSS values
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Jan 3, 2025
1 parent a76edf4 commit 4362729
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/components/src/text/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4362729

Please sign in to comment.