From 28c6c1ec5810b14e5de7cb49aab877e075871450 Mon Sep 17 00:00:00 2001 From: James Sizeland <65866907+jamessizeland@users.noreply.github.com> Date: Thu, 12 Jun 2025 13:24:50 +0100 Subject: [PATCH] css: add more aggressive overrides for background and text colour (#1384) * add more aggressive overrides for background and text colour * reduce styles changes --- apps/readest-app/src/utils/style.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index c32587f8..2101e5bc 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -108,8 +108,9 @@ const getColorStyles = ( html, body { color: ${fg}; } - div, p, span, pre { + div, p, span, pre , h1, h2, h3, h4, h5, h6 { ${overrideColor ? `background-color: ${bg} !important;` : ''} + ${overrideColor ? `color: ${fg} !important;` : ''} } a:any-link { ${overrideColor ? `color: ${primary};` : isDarkMode ? `color: lightblue;` : ''}