From 1d6467b612eca54a4e6912abe061260f1ac48ea3 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 25 May 2023 12:39:10 +0200 Subject: [PATCH] docs: increase contrast in dark-theme The contrast-ratio between the foreground and background colors aren't quite ideal in dark mode. This improves the situation a bit, by making the body-text a bit brighter. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9043 Acked-by: Alyssa Rosenzweig Part-of: --- docs/mesa3d_theme/static/screen.css_t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/mesa3d_theme/static/screen.css_t b/docs/mesa3d_theme/static/screen.css_t index 7da46e264f3..c55f07c0a4f 100644 --- a/docs/mesa3d_theme/static/screen.css_t +++ b/docs/mesa3d_theme/static/screen.css_t @@ -96,3 +96,7 @@ div.citation > p:last-of-type:after { } {%- endif %} + +[data-bs-theme="dark"] { + --bs-body-color: #dee2e6 /* $gray-300 */; +}