From c53944754b4fa9c3a4f8131099cf41ec66563ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Wed, 25 Jan 2023 13:14:32 +0100 Subject: [PATCH] Fix text color in docs (#12183) * Fix text color on landing page * Fix code color --- website/src/components/landing.js | 1 + website/src/styles/code.module.sass | 2 +- website/src/styles/landing.module.sass | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/components/landing.js b/website/src/components/landing.js index 7d8b455ef..08e0d678b 100644 --- a/website/src/components/landing.js +++ b/website/src/components/landing.js @@ -110,6 +110,7 @@ export const LandingBanner = ({ }) const style = { '--color-theme': background, + '--color-theme-dark': background, '--color-back': color, backgroundImage: backgroundImage ? `url(${backgroundImage})` : null, } diff --git a/website/src/styles/code.module.sass b/website/src/styles/code.module.sass index 59e4b4c94..b619c71cc 100644 --- a/website/src/styles/code.module.sass +++ b/website/src/styles/code.module.sass @@ -1,7 +1,7 @@ .pre position: relative background: var(--color-front) - color: var(--color-subtle) + color: var(--color-subtle-on-dark) border-radius: var(--border-radius) overflow: auto width: 100% diff --git a/website/src/styles/landing.module.sass b/website/src/styles/landing.module.sass index 2651424df..5c2a0754b 100644 --- a/website/src/styles/landing.module.sass +++ b/website/src/styles/landing.module.sass @@ -41,7 +41,7 @@ border-radius: 1em padding: 0 1rem 0.15rem background: var(--color-back) - color: var(--color-theme-dark) + color: var(--color-theme) .subtitle margin-top: 1rem