colineckert / obsidian-things

An Obsidian theme inspired by the beautifully-designed app, Things.
MIT License
707 stars 60 forks source link

Code block can't correctly display python variable color #166

Open Wannabeasmartguy opened 2 months ago

Wannabeasmartguy commented 2 months ago

Hello! Things is the best theme I've ever used! However, during my usage, there's a problem(or feature?) border me a lot:

When I'm in edit mode, things correctly renders the corresponding colors of variables, entities, and functions in python.

image

But when in reading view, they all turn red.

image

I've located the code block below, but I'm not sure how I should modify it, as I only know a little bit about css, but am not familiar with it.

code[class*='language-'],
.token.selector,
.cm-tag,
.token.dom.variable,
.token.tag,
.cm-def,
.token.parameter,
.cm-property,
.cm-qualifier {
  color: var(--atom-red);
}

If you give me a suggestion, that could be of help!