Highlightr-Plugin icon indicating copy to clipboard operation
Highlightr-Plugin copied to clipboard

Wrong font color in Live Preview mode

Open Trikzon opened this issue 3 years ago • 2 comments

When rendering in the new Live Preview mode released in Obsidian v0.13.14, the font color is black when it should be white.

Theme: Obsidian Dark CSS Snippets: None Community Plugins: None (other than Highlightr obv)

Live Preview Mode

image

Reading Mode

image

Trikzon avatar Dec 22 '21 02:12 Trikzon

I solved that by selecting css-classes in the plugin choose highlight method options, and then in obsidian.css I added the following, so it uses the color font of the theme in either light or dark mode:

*[class*="hltr-"] {
  color: var(--text-normal);
}

idr4n avatar Feb 22 '22 06:02 idr4n

I solved that by selecting css-classes in the plugin choose highlight method options, and then in obsidian.css I added the following, so it uses the color font of the theme in either light or dark mode:

*[class*="hltr-"] {
  color: var(--text-normal);
}

Where can i find the obsidian.css file?

FirephoenixX02 avatar Jun 21 '22 13:06 FirephoenixX02