deathau / cm-editor-syntax-highlight-obsidian

A plugin for [Obsidian](https://obsidian.md) which allows syntax highlighting for code blocks in the editor.
499 stars 37 forks source link

Dark mode awareness #4

Closed NomarCub closed 4 years ago

NomarCub commented 4 years ago

I have YAML frontmatter in some notes. I don't have any custom CSS, and they look like this in dark mode. It's basically unreadable.

image

Text color is the same in light mode, where it's not a problem. image

The highlighting should be either aware of your theme (at least of dark and light mode) or use colors that are readable in both dark and light mode.

deathau commented 4 years ago

Ah. This isn't so much dark mode awareness as it is not realizing the syntax highlighting would also apply to the frontmatter. I do have the yoncé colour scheme built-in specifically for dark mode, but it's currently only applying to code blocks and not frontmatter.

Thanks for pointing it out. I will fix it.