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

Font size in preview and compatibility with Style Settings plugin #3

Open
jsmm opened this issue Sep 9, 2021 · 0 comments
Open

Font size in preview and compatibility with Style Settings plugin #3

jsmm opened this issue Sep 9, 2021 · 0 comments

Comments

@jsmm
Copy link

jsmm commented Sep 9, 2021

Hi. I've made some modifications to this good looking theme in order to make some settings compatible with the Style Settings plugin. I share them here, in case they are of interest.

I've added:

:root {
  --default-font: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
  --font-monospace: 'Source Code Pro', monospace;
}

.cm-s-obsidian {
  font-family: var(--font-monospace);
}

font-family: var(--font-monospace) and var(--default-font) replace other appearances after font-family.

I have also deleted font-size in the preview view because 16px was too small a font-size for me to read. After deletion, it can be set in Obsidian>Settings>Appearance>Font size.

.markdown-preview-view {
/*  font-size: 16px; */
}

I don't know much about css, but the above works.

@jsmm jsmm changed the title Compatibility with Style Settings plugin Font size in preview and compatibility with Style Settings plugin Sep 9, 2021
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

1 participant