-
Notifications
You must be signed in to change notification settings - Fork 585
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
Color palette accessibility #120
Comments
Accessibility is kind of a vague catch-all phrase but here's where I think it matters in regards to Storybook. Basically the EU has a directive to officially requiring its member states to abide by WCAG 2.1 Level AA standards. It has a number of expectations that follow it beyond accessible colours but let's drill into that detail (which can be found here: https://www.w3.org/WAI/WCAG21/quickref/#contrast-minimum). Basically to start adjusting the colours in the colour contrast guidelines I need to identify a few things:
I'll submit a first pass in a little bit but I just wanted to cover my basic thinking so that there's some logic to the madness I'll submit shortly. |
theme.color.primary - Coral🆕 #FF4785 ➡️ #DE2865 theme.color.secondary - Blue🆕 #1EA7FD ➡️ #177CBB theme.color.tertiary - Grey🆕 #DDDDDD ➡️ #767676 theme.color.positive - Green🆕 #66BF3C ➡️ #47852A theme.color.warning - Ochre#E69D00* theme.color.negative - Red🆕 #FF4400 ➡️ #DB3B00 theme.color.orange - Orange🆕 #FC521F ➡️ #D2471D theme.color.gold - Gold🆕 #FFAE00 ➡️ #C68700 theme.color.green - Green🆕 #66BF3C ➡️ #46842A theme.color.seafoam - Seafoam🆕 #37D5D3 ➡️ #228281 theme.color.purple - Purple🆕 #6F2CAC ➡️ #945CC7** theme.color.ultraviolet - Ultraviolet#2A0481*** ****It may be a better path forward to redesign the alert tabs to not require a grey background. This suggestion is mainly because the alert colours appear to lose their colour meaning quite significantly when they are adjusted to meet WCAG's guidelines (e.g. https://imgur.com/a/qJw8S2x). Please review this first pass when you have a chance and let me know whether I understood the criteria correctly. |
Reported by @Hypnosphi
Goal
Audit and update color palette to something that's perceptually similar to the current palette but with improved accessibility.
Examples:
Reference
Would love some help with this if you have experience with perceptual colors + a11y. 🙏
The text was updated successfully, but these errors were encountered: