Skip to content

Commit

Permalink
Correct font-settings for custom themes
Browse files Browse the repository at this point in the history
  • Loading branch information
oleeskild authored Apr 24, 2022
1 parent d386b89 commit bda9025
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/site/styles/obsidian-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,21 @@
font-display: swap;
}

body {
--font-default: var(--default-font, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif);
--font-interface-override: '';
--font-interface-theme: '';
--font-interface: var(--font-interface-override), var(--font-interface-theme), var(--font-default);
--font-text-override: '';
--font-text-theme: '';
--font-text: var(--font-text-override), var(--font-text-theme), var(--font-interface);
--font-monospace-override: '';
--font-monospace-theme: '';
--font-monospace: var(--font-monospace-override), var(--font-monospace-theme), 'Source Code Pro', monospace;
--font-text-size: 16px;
--font-mermaid: var(--font-text);
}

:root {
--default-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif;
--mermaid-font: var(--default-font);
Expand Down Expand Up @@ -9072,4 +9087,4 @@ body.is-grabbing * {
background-image: url(public/images/93db313be3615c54d0a9.gif);
background-size: contain;
display: inline-block;
}
}

0 comments on commit bda9025

Please sign in to comment.