Skip to content

Commit

Permalink
Customization: Aligned luminance with the one in the Customer Portal …
Browse files Browse the repository at this point in the history
…and the WPL (#224)
  • Loading branch information
nicfix authored Oct 28, 2024
1 parent ccfa4cc commit d6f17db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/theme/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d6f17db

Please sign in to comment.