diff --git a/packages/ui/src/theme/v2/foreground.ts b/packages/ui/src/theme/v2/foreground.ts index 41cbbdcdfe..fd946570e1 100644 --- a/packages/ui/src/theme/v2/foreground.ts +++ b/packages/ui/src/theme/v2/foreground.ts @@ -19,12 +19,7 @@ function resolveGreyRef(value: V2ColorValue, primitives: Record, - background: HexColor, - minContrast: number, - target: number, -) { +function pickGrey(primitives: Record, background: HexColor, minContrast: number, target: number) { const matches = GREY_STEPS.filter((step) => { const hex = greyHex(primitives, step) return hex && contrastRatio(hex, background) >= minContrast