@@ -23,7 +23,7 @@ interface GlobalStylesProps {
2323const BODY_STYLES : Styles = {
2424 overscrollBehaviorY : 'none' ,
2525 fill : '#white' ,
26- fontFamily : 'var(--font)' ,
26+ fontFamily : 'var(--font-sans )' ,
2727 '-webkit-font-smoothing' : 'antialiased' ,
2828 '-moz-osx-font-smoothing' : 'grayscale' ,
2929 margin : 0 ,
@@ -83,15 +83,15 @@ const STATIC_CSS = `
8383 }
8484
8585 code {
86- font-family: var(--monospace- font);
86+ font-family: var(--font-mono );
8787 }
8888
8989 /* Prism Code */
9090 code[class*="language-"],
9191 pre[class*="language-"] {
9292 color: var(--dark-color);
9393 background: none;
94- font-family: var(--monospace- font);
94+ font-family: var(--font-mono );
9595 text-align: left;
9696 font-weight: normal;
9797 font-size: 14px;
@@ -276,8 +276,8 @@ export function GlobalStyles(props: GlobalStylesProps) {
276276 return `
277277 html {
278278 overscroll-behavior-y: none;
279- --font: ${ fontValue } system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
280- --monospace- font: ${ monospaceFontValue } ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
279+ --font-sans : ${ fontValue } system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
280+ --font-mono : ${ monospaceFontValue } ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
281281 }
282282${ STATIC_CSS } `;
283283 } , [ font , monospaceFont ] ) ;
0 commit comments