Improve some text colour contrasts #276
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


According to Firefox' accessibility checker there are some issues with text contrast in Pico. After checking the code, I found that several of these issues relate to the choice of
--muted-color. The issues occur in: (1)codeblocks, (2) in the subtitle of anarticle header, and (3) inblockquote footer. In each of these cases, the text colour is--muted-color, so the logical solution to me seemed to adjust the--muted-color.I changed
--muted-colorin both themes to be one step closer to the--color. This worked fine for thearticle headerand theblockquote footer, but still wasn't sufficient for thecodeblocks because the background colour of--muted-background-coloris just too similar. So, in the latter case, I decided to replace--muted-colorwith--color; this is similar to GitHub where code blocks have the same text colour as regular text.Interestingly, almost all other contrast issues relate to buttons, as described in #123. Maybe I can find some time to look at those later ^^