From 5e26838056f9686fd3e877b9c72c80a24a003614 Mon Sep 17 00:00:00 2001 From: babu-ch Date: Mon, 20 Jan 2025 22:30:32 +0900 Subject: [PATCH] fix(theme): adjust background color for code blocks in custom containers in dark mode --- src/core/styles/vt-doc-code.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/styles/vt-doc-code.css b/src/core/styles/vt-doc-code.css index f86b16f..68dffaf 100644 --- a/src/core/styles/vt-doc-code.css +++ b/src/core/styles/vt-doc-code.css @@ -38,6 +38,10 @@ background-color: var(--vt-c-bg-soft); } +.dark .vt-doc .custom-block div[class*='language-'] { + background-color: var(--vt-c-black); +} + @media (min-width: 640px) { .vt-doc div[class*='language-'] { margin: 28px 0;