From ea0666e447577e631a4371c2fb873d76b2481802 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Oct 2025 17:34:39 +0000 Subject: [PATCH] Fix dark mode text visibility --- src/styles/markdown-editor.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/styles/markdown-editor.css b/src/styles/markdown-editor.css index ff95a70c..9724d952 100644 --- a/src/styles/markdown-editor.css +++ b/src/styles/markdown-editor.css @@ -63,6 +63,9 @@ /* Dark mode specific overrides */ .dark .w-md-editor { @apply bg-background border-border; + --color-fg-default: hsl(var(--foreground)); + --color-canvas-default: hsl(var(--background)); + --color-border-default: hsl(var(--border)); } .dark .w-md-editor-toolbar { @@ -72,6 +75,17 @@ .dark .w-md-editor-text-pre, .dark .w-md-editor-text-input { @apply bg-background text-foreground; + color: hsl(var(--foreground)) !important; +} + +.dark .w-md-editor-text-pre > code { + color: hsl(var(--foreground)) !important; +} + +.dark .w-md-editor textarea.w-md-editor-text-input { + color: hsl(var(--foreground)) !important; + background-color: hsl(var(--background)) !important; + caret-color: hsl(var(--foreground)) !important; } .dark .wmde-markdown {