From 95e92185bcf2dcf66c707f412de405dbd82a8a10 Mon Sep 17 00:00:00 2001 From: Bob Date: Sun, 29 Sep 2024 20:10:05 +0800 Subject: [PATCH] problem: markdown editor can't be seen in dark mode --- src/app.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/app.css b/src/app.css index 720ae0e..7d8c894 100644 --- a/src/app.css +++ b/src/app.css @@ -95,3 +95,19 @@ background-blend-mode: lighten; background-color: gray; } + +html.dark .carta-theme__default { + --border-color: var(--border-color-dark); + --selection-color: var(--selection-color-dark); + --focus-outline: var(--focus-outline-dark); + --hover-color: var(--hover-color-dark); + --caret-color: var(--caret-color-dark); + --text-color: var(--text-color-dark); +} + +/* Code dark mode */ +/* Only if you didn't specify a custom code theme */ +html.dark .shiki, +html.dark .shiki span { + color: var(--shiki-dark) !important; +}