Skip to content

Commit 38908bf

Browse files
committed
Use fira to show code snippets
1 parent b97604f commit 38908bf

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

sass/base/_typography.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ $blockquote: $type-border !default;
22
$sans: "PT Sans", "Helvetica Neue", Arial, sans-serif !default;
33
$serif: "PT Serif", Georgia, Times, "Times New Roman", serif !default;
44
$mono: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace !default;
5+
$fira: "Fira Code","SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;
56
$heading-font-family: "PT Serif", "Georgia", "Helvetica Neue", Arial, sans-serif !default;
67
$header-title-font-family: $heading-font-family !default;
78
$header-subtitle-font-family: $heading-font-family !default;

sass/custom/_fonts.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
//$heading-font-family: "Verdana", sans-serif;
99
//$header-title-font-family: "Futura", sans-serif;
1010
//$header-subtitle-font-family: "Futura", sans-serif;
11+
12+
@import url(https://cdn.jsdelivr.net/gh/tonsky/FiraCode@1.206/distr/fira_code.css);

sass/partials/_syntax.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ p, li {
113113
}
114114

115115
.pre-code {
116-
font-family: $mono !important;
116+
font-family: $fira !important;
117+
font-feature-settings: "calt" 1;
118+
font-variant-ligatures: contextual;
117119
overflow: scroll;
118120
overflow-y: hidden;
119121
display: block;

0 commit comments

Comments
 (0)