Skip to content

Commit

Permalink
refactor: enhance the configurability of fonts (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
v4vong authored Apr 16, 2023
1 parent b63b65d commit 7ec31e8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _sass/addon/commons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ body {
env(safe-area-inset-bottom) env(safe-area-inset-left);
color: var(--text-color);
-webkit-font-smoothing: antialiased;
font-family: 'Source Sans Pro', 'Microsoft Yahei', sans-serif;
font-family: $font-family-base;
line-height: 1.75;
}

Expand Down
2 changes: 1 addition & 1 deletion _sass/addon/module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%heading {
color: var(--heading-color);
font-weight: 400;
font-family: Lato, 'Microsoft Yahei', sans-serif;
font-family: $font-family-heading;
}

%section {
Expand Down
5 changes: 5 additions & 0 deletions _sass/addon/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ $bottom-min-height: 35rem !default;
/* syntax highlight */

$code-font-size: 0.85rem !default;

/* fonts */

$font-family-base: 'Source Sans Pro', 'Microsoft Yahei', sans-serif;
$font-family-heading: Lato, 'Microsoft Yahei', sans-serif;
2 changes: 1 addition & 1 deletion _sass/jekyll-theme-chirpy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"colors/light-typography",
"colors/dark-typography",

"addon/module",
"addon/variables",
"variables-hook",
"addon/module",
"addon/syntax",
"addon/commons",

Expand Down

0 comments on commit 7ec31e8

Please sign in to comment.