From 63cd0d229ebd25b08d316a8fb343f4c028d76477 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 14 Feb 2022 11:43:05 +0100 Subject: [PATCH] docs: adjust primary color scale, fix search dropdown a11y issues 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. --- website/src/css/custom.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 940a4feb2f..dd92dbc69f 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -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; @@ -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 {