Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong font color in Live Preview mode #22

Open
Trikzon opened this issue Dec 22, 2021 · 2 comments
Open

Wrong font color in Live Preview mode #22

Trikzon opened this issue Dec 22, 2021 · 2 comments

Comments

@Trikzon
Copy link

Trikzon commented Dec 22, 2021

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

@idr4n
Copy link

idr4n commented Feb 22, 2022

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);
}

@FirephoenixX02
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants