From 1a8d730b2928bed629268bf8a2aeb0891fced52b Mon Sep 17 00:00:00 2001 From: ranjangautam Date: Thu, 17 Aug 2023 16:56:01 +0545 Subject: [PATCH] fix(): note block color in dark mode --- src/css/custom.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/css/custom.scss b/src/css/custom.scss index ea2051a2..71851c9e 100644 --- a/src/css/custom.scss +++ b/src/css/custom.scss @@ -32,6 +32,8 @@ --ifm-link-color:#0d6efd; --ifm-link-hover-color:#0a58ca; --ifm-link-hover-decoration:none; + --ifm-note-color: #e0d4f4; + --ifm-note-border-color: #8d59e9; } /* For readability concerns, you should choose a lighter palette in dark mode. */ @@ -48,6 +50,8 @@ --ifm-link-color:#879cf8; --ifm-link-hover-color:#afbdfb; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); + --ifm-note-color: #452c71; + --ifm-note-border-color: #8d59e9; } @@ -112,8 +116,8 @@ } } .admonition.admonition-note { - border-color: #8d59e9 !important; - background-color: #E0D4F4 !important; + border-color: var(--ifm-note-border-color) !important; + background-color: var(--ifm-note-color) !important; } }