From db20dd51078303c6666b43f4ea5c59827d102a8b Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 12 Mar 2026 16:14:32 +0100 Subject: [PATCH] Add background styling for dark theme in editor and markdown preview --- src/index.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.css b/src/index.css index ba1cfc2..141da12 100644 --- a/src/index.css +++ b/src/index.css @@ -608,6 +608,10 @@ body:not([data-theme="light"]) .editor__textarea-wrap--preview { flex-direction: row; } +body:not([data-theme="light"]) .editor__textarea-wrap--split { + background: var(--bg); +} + .editor__textarea-wrap--split .editor__codemirror { flex: 1; border-right: 1px solid var(--border); @@ -754,6 +758,10 @@ body:not([data-theme="light"]) .editor__textarea-wrap--split .markdown-preview { color: var(--ink); } +body:not([data-theme="light"]) .markdown-preview { + background: var(--bg); +} + .markdown-preview--hidden { display: none; }