Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
[U] switch to sarasa fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
artefaritaKuniklo committed Mar 19, 2024
1 parent dda7a25 commit ea2e779
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions assets/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,28 @@
font-weight: 400;
font-display: swap;
src: local(''),
url('fonts/roboto-mono-v13-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('fonts/roboto-mono-v13-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
url('fonts/roboto-mono-v13-latin-regular.woff2') format('woff2'),
/* Chrome 26+, Opera 23+, Firefox 39+ */
url('fonts/roboto-mono-v13-latin-regular.woff') format('woff');
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

@font-face {
font-family: 'EB Garamond';
font-family: 'Sarasa Gothic SC';
font-style: normal;
font-display: swap;
src: local(''),
url('fonts/EBGaramond/EBGaramond-VariableFont_wght.ttf') format('truetype');
}

@font-face {
font-family: 'EB Garamond';
font-style: italic;
font-display: swap;
src: local(''),
url('fonts/EBGaramond/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
src: url('fonts/SarasaGothicSC-Regular.ttf') format('truetype');
}

@font-face {
font-family: 'Source Han Serif SC';
font-family: 'Sarasa Gothic SC SemiBold';
font-style: normal;
font-display: swap;
src: local(''),
url('fonts/SourceHanSerif/SourceHanSerifSC-Regular.otf') format('opentype');
}

@font-face {
font-family: 'EB Garamond';
font-style: italic;
font-display: swap;
src: local(''),
url('fonts/EBGaramond/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
src: url('fonts/SarasaGothicSC-SemiBold.ttf') format('truetype');
}

body {
font-family: 'EB Garamond', 'Source Han Serif SC', 'Noto Sans Symbols 2', serif;
font-family: 'Inter', 'Sarasa Gothic SC', 'Noto Sans Symbols 2', sans-serif;
font-variant-ligatures: common-ligatures;
font-feature-settings: 'liga';
}
Expand All @@ -52,3 +36,5 @@ code {
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2');
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600&display=swap');
Binary file added assets/fonts/SarasaGothicSC-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/SarasaGothicSC-SemiBold.ttf
Binary file not shown.

0 comments on commit ea2e779

Please sign in to comment.