Skip to content

Commit

Permalink
Merge pull request #17 from jtpio/update-font-handling
Browse files Browse the repository at this point in the history
Update font handling
  • Loading branch information
martinRenou authored Dec 11, 2024
2 parents 12d6987 + 62cf611 commit 86541ce
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions style/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ Material Design when selecting colors. We are not, however, following
all of MD as it is not optimized for dense, information rich UIs.
*/

@font-face {
font-family: 'JetBrains Mono';
src: url('JetBrainsMonoNL-Regular.ttf') format('truetype');
}

:root {
/* Elevation
*
Expand Down Expand Up @@ -120,8 +115,8 @@ all of MD as it is not optimized for dense, information rich UIs.
--jp-ui-font-size1: 13px; /* Base font size */
--jp-ui-font-size2: 1.2em;
--jp-ui-font-size3: 1.44em;

--jp-ui-font-family: 'JetBrains Mono';
--jp-ui-font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', helvetica,
arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';

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

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

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

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

--jp-cell-prompt-width: 64px;
--jp-cell-prompt-font-family: 'JetBrains Mono';
--jp-cell-prompt-font-family: 'Source Code Pro', monospace;
--jp-cell-prompt-letter-spacing: 0px;
--jp-cell-prompt-opacity: 1;
--jp-cell-prompt-not-active-opacity: 0.8;
Expand Down

0 comments on commit 86541ce

Please sign in to comment.