How can I change Highlight Colour + Highlighted Text Colour? (No plugins please)

Got it. It seems the issue shows up in the matched text of Search, Backlinks, etc., in dark mode. I don’t know the the exact yellow you are using, so just went with yellow :yellow_circle: and black :black_circle:, but you get the idea.

body {
    --text-highlight-bg: yellow;
}

.theme-dark .cm-s-obsidian span.cm-highlight, .markdown-rendered mark {
    color: black;
}

.theme-dark .search-result-file-matched-text {
    color: black;
}

1 Like