Skip to content

Commit

Permalink
fix(theme): use faux italics only with web fonts (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Nov 4, 2022
1 parent 26c186a commit 124158e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-default/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ body {
color: var(--vp-c-text-1);
background-color: var(--vp-c-bg);
direction: ltr;
font-synthesis: style;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down
4 changes: 4 additions & 0 deletions src/client/theme-default/styles/fonts.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* webfont-marker-begin */
@import url('https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap');

html body {
font-synthesis: style;
}
/* webfont-marker-end */

@font-face {
Expand Down

0 comments on commit 124158e

Please sign in to comment.