Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Improve contrast of colors in the docs #219

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

StephenBarlow
Copy link
Contributor

Using darker versions of brand colors as proposed by @ana-demags

Before:

Screen Shot 2021-08-19 at 5 19 34 PM

After:

Screen Shot 2021-08-19 at 5 19 47 PM

BTW @ana-demags, I ended up not being able to just use a darker gray for the comment strings, because they ended up looking too similar to regular code. So I'm trying out orange-dark here, which I'm partial too because it helps the comments stand out. It's pretty similar to the darker yellow, but that color comes up much less frequently. Let me know what you think!

@ana-demags
Copy link

That sounds excellent and a really great point, @StephenBarlow! 🎉 I'll update the Figma file to include orange-dark and a preview of a comment as well. Thank you so much for this!

Comment on lines +6 to +7
secondary: colors.pink.darker,
tertiary: colors.teal.darker,
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks awesome! Thanks @StephenBarlow. Since we only step from dark to darker on the second line, should we step up one time on the first as well, from base to dark instead of darker?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good Q! Based on @ana-demags's findings, these are the least-dark shades of each brand color that fit the contrast requirements for accessibility. So I believe we should stick with these updates.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me!

@trevorblades trevorblades merged commit 5421069 into main Aug 20, 2021
@trevorblades trevorblades deleted the sb/contrast-approved-colors branch August 20, 2021 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants