More specifically, the following does not work :
.theme-dark .token.punctuation
.theme-dark .cm-punctuation
.theme-dark .token.attr-value
.theme-dark .token.function
.theme-dark .token.class-name
.theme-dark .token.boolean
.theme-dark .token.char
.theme-dark .token.property
.theme-dark .token.constant
.theme-dark .token.symbol
.theme-dark .cm-bracket - working only in html
You can set them any color but you won’t see any result.
I have prepared an example insert it and look at any code in obsidian
.theme-dark .token.punctuation,
.theme-dark .cm-punctuation,
.theme-dark .token.attr-value,
.theme-dark .token.function,
.theme-dark .token.class-name,
.theme-dark .token.boolean,
.theme-dark .token.char,
.theme-dark .token.property,
.theme-dark .token.constant,
.theme-dark .token.symbol,
.theme-dark .cm-bracket {
color: #3002fc;
}
P.S. It is indicated for a dark theme, but for a light one, everything is the same.