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

Increase Contrast for Purple on UI #4091

Open
3 tasks done
zackbcom opened this issue Jan 16, 2025 · 0 comments · May be fixed by #4092
Open
3 tasks done

Increase Contrast for Purple on UI #4091

zackbcom opened this issue Jan 16, 2025 · 0 comments · May be fixed by #4092
Labels
bug Something isn't working

Comments

@zackbcom
Copy link
Contributor

zackbcom commented Jan 16, 2025

Checklist

  • I am not using Home Assistant. Or: a developer has told me to come here.
  • I have checked the troubleshooting section and my problem is not described there.
  • I have read the changelog and my problem is not mentioned there.

Deploy method

Docker

Z-Wave JS UI version

9.29.1.b4e1279

ZwaveJS version

14.3.7

Describe the bug

Issue

I am having a hard time seeing the dark purple colors used for Long Range with dark mode.

Could we get them changed to be a bit lighter for better contrast?

https://webaim.org/resources/contrastchecker/?fcolor=9C27B0&bcolor=1E1E1E

Image

To Reproduce

View zwave LR button on Provisioning Entries page.

Image

Image

Expected behavior

Purple color to have better contrast for visibility.

Additional context

Ran this through ChatGPT to see what it would recommend

To create a cohesive color palette for a website, while ensuring WCAG AA compliance and maintaining the same primary color essence, we can slightly tweak the hues, saturation, and brightness of the colors. The goal is to make them visually harmonious while being accessible.

Here’s the updated, cohesive palette:

Updated Colors (Hex and RGB):

  • Orange
    • Hex: #FFB74D
    • RGB: (255, 183, 77)
  • Green
    • Hex: #81C784
    • RGB: (129, 199, 132)
  • Red
    • Hex: #EF5350
    • RGB: (239, 83, 80)
  • Blue
    • Hex: #42A5F5
    • RGB: (66, 165, 245)
  • Purple
    • Hex: #BA68C8
    • RGB: (186, 104, 200)
  • Background
    • Hex: #1E1E1E
    • RGB: (30, 30, 30)

Characteristics of the Palette:

  • Cohesiveness: Colors have been slightly desaturated to ensure harmony, with brightness adjusted for uniform visual appeal.
  • Accessibility: Colors now meet WCAG AA contrast standards for text and button use on the dark background (#1E1E1E).
  • Flexibility: This palette works for buttons, text, and other UI elements on a modern, professional website.

Image

Image

@zackbcom zackbcom added the bug Something isn't working label Jan 16, 2025
@robertsLando robertsLando linked a pull request Jan 17, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant