From d6f17db2f0c583beb42a214db3f712819296d165 Mon Sep 17 00:00:00 2001 From: Nicola Sacco Date: Mon, 28 Oct 2024 17:31:39 +0100 Subject: [PATCH] Customization: Aligned luminance with the one in the Customer Portal and the WPL (#224) --- src/ui/theme/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/theme/utils.ts b/src/ui/theme/utils.ts index 28b8ac1f..bf15f709 100644 --- a/src/ui/theme/utils.ts +++ b/src/ui/theme/utils.ts @@ -52,7 +52,7 @@ const isLightColor = ({ r, g, b }: RGB) => { 0.0722 * gammaCorrect(b); // Return whether the background is light - return luminance > 0.179; + return luminance > 0.2; }; const rgbToTextColors = (rgb: RGB) => {