From 060d049dee02049168316f501dcf1cf7b227f1bd Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:28:28 +0100 Subject: [PATCH] Import rails guides color theme for dark mode * The current background is _very_ dark * Hovered links appear white * Better contrast on code blocks --- .../generator/template/rails/resources/css/main.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/rdoc/generator/template/rails/resources/css/main.css b/lib/rdoc/generator/template/rails/resources/css/main.css index 06563f21..cb838a8f 100644 --- a/lib/rdoc/generator/template/rails/resources/css/main.css +++ b/lib/rdoc/generator/template/rails/resources/css/main.css @@ -76,12 +76,13 @@ body { @media (prefers-color-scheme: dark) { :root { - --text-color: #dddddd; - --link-color: #ee3f3f; + --text-color: #e5e5e5; + --link-color: #f06b6e; + --link-hover-color: #ec3d41; - --body-bg: #0c0c0c; - --code-bg: #1b1b1b; - --source-code-bg: #000000; + --body-bg: #181818; + --code-bg: #292929; + --source-code-bg: #292929; } }