Skip to content

Commit 86541ce

Browse files
authored
Merge pull request #17 from jtpio/update-font-handling
Update font handling
2 parents 12d6987 + 62cf611 commit 86541ce

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

style/variables.css

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ Material Design when selecting colors. We are not, however, following
2424
all of MD as it is not optimized for dense, information rich UIs.
2525
*/
2626

27-
@font-face {
28-
font-family: 'JetBrains Mono';
29-
src: url('JetBrainsMonoNL-Regular.ttf') format('truetype');
30-
}
31-
3227
:root {
3328
/* Elevation
3429
*
@@ -120,8 +115,8 @@ all of MD as it is not optimized for dense, information rich UIs.
120115
--jp-ui-font-size1: 13px; /* Base font size */
121116
--jp-ui-font-size2: 1.2em;
122117
--jp-ui-font-size3: 1.44em;
123-
124-
--jp-ui-font-family: 'JetBrains Mono';
118+
--jp-ui-font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', helvetica,
119+
arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
125120

126121
/*
127122
* Use these font colors against the corresponding main layout colors.
@@ -183,7 +178,9 @@ all of MD as it is not optimized for dense, information rich UIs.
183178
--jp-content-font-color3: rgba(255, 255, 255, 0.5);
184179
--jp-content-link-color: var(--jp-night-blue);
185180

186-
--jp-content-font-family: 'JetBrains Mono';
181+
--jp-content-font-family: -apple-system, blinkmacsystemfont, 'Segoe UI',
182+
helvetica, arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
183+
'Segoe UI Symbol';
187184

188185
/*
189186
* Code Fonts
@@ -194,7 +191,7 @@ all of MD as it is not optimized for dense, information rich UIs.
194191
--jp-code-font-size: 13px;
195192
--jp-code-line-height: 1.3077; /* 17px for 13px base */
196193
--jp-code-padding: 0.385em; /* 5px for 13px base */
197-
--jp-code-font-family-default: 'JetBrains Mono';
194+
--jp-code-font-family-default: menlo, consolas, 'DejaVu Sans Mono', monospace;
198195
--jp-code-font-family: var(--jp-code-font-family-default);
199196

200197
/* This gives a magnification of about 125% in presentation mode over normal. */
@@ -278,7 +275,7 @@ all of MD as it is not optimized for dense, information rich UIs.
278275
--jp-cell-editor-active-border-color: var(--jp-brand-color1);
279276

280277
--jp-cell-prompt-width: 64px;
281-
--jp-cell-prompt-font-family: 'JetBrains Mono';
278+
--jp-cell-prompt-font-family: 'Source Code Pro', monospace;
282279
--jp-cell-prompt-letter-spacing: 0px;
283280
--jp-cell-prompt-opacity: 1;
284281
--jp-cell-prompt-not-active-opacity: 0.8;

0 commit comments

Comments
 (0)