diff --git a/src/styles/markdown-editor.css b/src/styles/markdown-editor.css index 9724d952..6d5783e2 100644 --- a/src/styles/markdown-editor.css +++ b/src/styles/markdown-editor.css @@ -5,6 +5,9 @@ @apply rounded-lg border border-input bg-background; box-shadow: none !important; font-family: inherit; + --color-fg-default: hsl(var(--foreground)); + --color-canvas-default: hsl(var(--background)); + --color-border-default: hsl(var(--border)); } /* Toolbar */ @@ -47,6 +50,17 @@ line-height: 1.6 !important; } +/* Light mode text visibility */ +.w-md-editor-text-pre > code { + color: hsl(var(--foreground)) !important; +} + +.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; +} + /* Preview area */ .w-md-editor-preview { @apply bg-background;