Skip to content

Commit

Permalink
docs: adjust primary color scale, fix search dropdown a11y issues
Browse files Browse the repository at this point in the history
This changes the darker end of the primary color scale to make it even
darker. This means that at the lower end of the scale, white text also
gets enough contrast to be accessible.

For the record: these variables do not seem to be in use anywhere else
in the code base (based on a text search), so it shouldn't affect any
other bits or pieces.
  • Loading branch information
thomasheartman committed Feb 14, 2022
1 parent 3068207 commit 63cd0d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ html[data-theme='dark'] {
--ifm-color-primary-lighter: #c9c9ff;
--ifm-color-primary-light: #c2c0ff;
--ifm-color-primary: #bab8ff;
--ifm-color-primary-dark: #b2afff;
--ifm-color-primary-darker: #aba7ff;
--ifm-color-primary-darkest: #a39eff;
--ifm-color-primary-dark: #a09de4;
--ifm-color-primary-darker: #8582c9;
--ifm-color-primary-darkest: #6b67ae;

--unleash-color-purple: var(--ifm-color-primary);
--unleash-color-gray: #333;
Expand All @@ -57,8 +57,9 @@ html[data-theme='dark'] {
--ifm-color-secondary-contrast-background
);


--unleash-img-background-color: #fff;

--docsearch-primary-color: var(--ifm-color-primary-darkest);
}

main img {
Expand Down

0 comments on commit 63cd0d2

Please sign in to comment.