Skip to content

Commit

Permalink
theme(fix): font name fix
Browse files Browse the repository at this point in the history
closes #892

should quench all doubts about the font

Signed-off-by: Patrick Kollitsch <[email protected]>
  • Loading branch information
davidsneighbour committed Apr 30, 2024
1 parent 641d415 commit 44c31c1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
35 changes: 20 additions & 15 deletions assets/scss/01-settings/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
/// @group settings

$fontdir: '/assets/webfonts';
$fontdir: "/assets/webfonts";

@font-face {
font-family: Exo;
src: url('#{$fontdir}/exo/normal.woff2') format('woff2') tech('variations'),
url('#{$fontdir}/exo/normal.woff2') format('woff2-variations');
font-family: "Exo Font Number 2";
src:
url("#{$fontdir}/exo/normal.woff2") format("woff2") tech("variations"),
url("#{$fontdir}/exo/normal.woff2") format("woff2-variations");
font-weight: 100 900;
font-style: normal;
font-display: swap;
text-rendering: optimizelegibility;
}

@font-face {
font-family: Exo;
src: url('#{$fontdir}/exo/italic.woff2') format('woff2') tech('variations'),
url('#{$fontdir}/exo/italic.woff2') format('woff2-variations');
font-family: "Exo Font Number 2";
src:
url("#{$fontdir}/exo/italic.woff2") format("woff2") tech("variations"),
url("#{$fontdir}/exo/italic.woff2") format("woff2-variations");
font-weight: 100 900;
font-style: italic;
font-display: swap;
Expand All @@ -24,8 +26,9 @@ $fontdir: '/assets/webfonts';

@font-face {
font-family: JetBrainsMono;
src: url('#{$fontdir}/jetbrainsmono/jetbrainsmonoi.woff2') format('woff2') tech('variations'),
url('#{$fontdir}/jetbrainsmono/jetbrainsmonoi.woff2') format('woff2-variations');
src:
url("#{$fontdir}/jetbrainsmono/jetbrainsmonoi.woff2") format("woff2") tech("variations"),
url("#{$fontdir}/jetbrainsmono/jetbrainsmonoi.woff2") format("woff2-variations");
font-weight: 100 800;
font-style: italic;
font-display: swap;
Expand All @@ -34,8 +37,9 @@ $fontdir: '/assets/webfonts';

@font-face {
font-family: JetBrainsMono;
src: url('#{$fontdir}/jetbrainsmono/jetbrainsmono.woff2') format('woff2') tech('variations'),
url('#{$fontdir}/jetbrainsmono/jetbrainsmono.woff2') format('woff2-variations');
src:
url("#{$fontdir}/jetbrainsmono/jetbrainsmono.woff2") format("woff2") tech("variations"),
url("#{$fontdir}/jetbrainsmono/jetbrainsmono.woff2") format("woff2-variations");
font-weight: 100 800;
font-style: normal;
font-display: swap;
Expand All @@ -44,9 +48,10 @@ $fontdir: '/assets/webfonts';

@font-face {
font-family: BahnPro;
src: url('#{$fontdir}/bahn/bahnpro_regular-webfont.woff2') format('woff2'),
url('#{$fontdir}/bahnpro_regular-webfont.woff') format('woff'),
url('#{$fontdir}/bahnpro_regular-webfont.ttf') format('truetype');
src:
url("#{$fontdir}/bahn/bahnpro_regular-webfont.woff2") format("woff2"),
url("#{$fontdir}/bahnpro_regular-webfont.woff") format("woff"),
url("#{$fontdir}/bahnpro_regular-webfont.ttf") format("truetype");
font-weight: 700;
font-style: normal;
font-display: swap;
Expand All @@ -59,7 +64,7 @@ $fontdir: '/assets/webfonts';
}

.ff-body {
font-family: Exo, sans-serif;
font-family: "Exo Font Number 2", sans-serif;
}

.ff-jetbrains {
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/01-settings/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $body-bg: #f1f6f4;
/// typography
/// $font-size-root: 16px;
$font-size-base: 1.5rem;
$font-family-sans-serif: "Exo 2";
$font-family-sans-serif: "Exo Font Number 2";

/// headings
$h1-font-size: $font-size-base * 1.75;
Expand Down

0 comments on commit 44c31c1

Please sign in to comment.