Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store branding: Add complementing text and accent colors #4746

Merged

Conversation

dennisreimann
Copy link
Member

Currently we use the current theme text color, independent of the brand color: This is problematic with rather light or dark branding colors, because we might show light text on a light background. This fixes that circumstance by calculating the complementing text color and also adds a slight adjustment for the hover/focus states. The accent color is calculated by decreasing the brightness a bit, which works for light and dark brand colors.

Before

grafik

After

after

Currently we use the current theme text color, independent of the brand color: This is problematic with rather light or dark branding colors, because we might show light text on a light background. This fixes that circumstance by calculating the complementing text color and also adds a slight adjustment for the hover/focus states. The accent color is calculated by decreasing the brightness a bit, which works for light and dark brand colors.
@dennisreimann dennisreimann added Enhancement Improvements to an existing feature UI / UX Front-end issues, for front-end designers labels Mar 7, 2023
@NicolasDorier
Copy link
Member

it should probably be rather a non static method inside the color palette, but that's not really important. Good for me.

Copy link
Member

@dstrukt dstrukt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, LGTM!

Love the update

@dennisreimann dennisreimann merged commit f57eab3 into btcpayserver:master Mar 9, 2023
@dennisreimann dennisreimann deleted the store-branding-color branch March 9, 2023 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvements to an existing feature UI / UX Front-end issues, for front-end designers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants