chetachiezikeuzor / Yin-and-Yang-Theme

An Obsidian.md theme with a stark contrast between dark mode and light mode, much like the Yin and Yang symbol ☯️.
Mozilla Public License 2.0
541 stars 42 forks source link

Inconsistencies between Preview Mode and Exporting a PDF #99

Open ChriiMoral opened 2 years ago

ChriiMoral commented 2 years ago

image Left window has a page in Obsidian, Preview Mode. Right window has the exported PDF version of the page.

ChriiMoral commented 2 years ago

I'm unsure about the sizing issue, but I managed to deal with the color inconsistencies by manually changing the em-color & strong-color values in .theme-light and .theme-dark within the Yin and Yang .css file.

For some reason, changing the colors within the Typography section of the Style Settings doesn't work on exporting PDFs.

image New export on the right window reflects changes in Yin and Yang.css.

liu-qilong commented 2 years ago

I encountered this issue and found a workaround just now:

P.S. If you're not familiar with snippets in Obsidian, you can refer to Use Themes and/or CSS snippets - Obsidian Help. I use it as a convenient way to add some final adjustments to the appearance style. It may be more robust than directly editing the theme file, because the theme could be subject to updates.

P.S. I also make some adjustments to the quote block exporting configuration: transparent background and black quote symbol, to make it more suitable for printing. Relevant code is the last few lines begin with .print .markdown-preview-view blockquote and before the last }. Please feel free to delete them if not needed.