From 097fde203da77f51de4c37ba6923cefde768b033 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 31 Jul 2025 10:40:08 +0800 Subject: [PATCH] css: overriding book color also applies to the font elements (#1721) --- apps/readest-app/src/utils/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index c2235e9e..a0501e03 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -117,7 +117,7 @@ const getColorStyles = ( background-color: var(--theme-bg-color, transparent); background: var(--background-set, none); } - div, p, h1, h2, h3, h4, h5, h6 { + div, p, font, h1, h2, h3, h4, h5, h6 { ${overrideColor ? `background-color: ${bg} !important;` : ''} ${overrideColor ? `color: ${fg} !important;` : ''} }