TheGame icon indicating copy to clipboard operation
TheGame copied to clipboard

Profile page: Dynamically adjust text color to ensure sufficient contrast

Open davort opened this issue 2 years ago • 1 comments

What would you like to be added?

When a user uploads a light background image, the color of the text on the profile page should change from white to black.

An example of the current state CleanShot 2023-01-27 at 09 13 44

Why is this needed?

To ensure sufficient contrast between the text and the background. This is a fundamental feature in terms of accessibility.

davort avatar Jan 27 '23 08:01 davort

Maybe with CSS's mix-blend-mode or background-blend-mode could cause the color, when combined with the background, to adaptively provide contrast.

Before I can really try and tackle this, I need to understand what a “stacking context” is and what it means to create a new one.

dysbulic avatar Jan 30 '23 13:01 dysbulic