Skip to content

Commit

Permalink
MAC-39 🐛 Fix the typography of the site (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
macintacos authored Apr 19, 2021
1 parent c73ab58 commit 324e25e
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 124 deletions.
46 changes: 0 additions & 46 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/ISSUE_TEMPLATE/deploy-to-production.md

This file was deleted.

28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

24 changes: 20 additions & 4 deletions assets/css/extended/fonts.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/extended/fonts.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions assets/css/extended/typography.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 22 additions & 4 deletions scss/fonts.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
@font-face {
font-family: "Inter Light";
font-weight: 300;
src: local("Inter Light"), url("fonts/Inter/Inter-Light.ttf");
src: local("Inter Light"),
url("/fonts/Inter/Inter-Light.ttf") format("truetype");
}

@font-face {
font-family: "Inter Regular";
font-weight: 400;
src: local("Inter Regular"), url("fonts/Inter/Inter-Regular.ttf");
src: local("Inter Regular"),
url("/fonts/Inter/Inter-Regular.ttf") format("truetype");
}

@font-face {
font-family: "Inter Bold";
font-weight: 700;
src: local("Inter Bold"), url("fonts/Inter/Inter-Bold.ttf");
src: local("Inter Bold"),
url("/fonts/Inter/Inter-Bold.ttf") format("truetype");
}

@font-face {
font-family: "Inter Black";
font-weight: 900;
src: local("Inter Black"), url("fonts/Inter/Inter-Black.ttf");
src: local("Inter Black"),
url("/fonts/Inter/Inter-Black.ttf") format("truetype");
}

@font-face {
font-family: "JetBrains Mono Regular";
font-weight: 400;
src: local("JetBrains Mono Regular"),
url("/fonts/JetBrains/JetBrainsMono-Regular.ttf") format("truetype");
}

@font-face {
font-family: "JetBrains Mono Italic";
font-weight: 400;
src: local("JetBrains Mono Italic")
url("/fonts/JetBrains/JetBrainsMono-Regular.ttf") format("truetype");
}
4 changes: 2 additions & 2 deletions scss/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ h6 {
}

body {
font-family: ui-serif, Inter Regular;
font-family: "Inter Regular";
line-height: 1.7em;
}

.post-content {
pre,
code {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
font-family: "JetBrains Mono Regular", SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
}
}
Binary file added static/fonts/JetBrains/JetBrainsMono-Italic.ttf
Binary file not shown.
Binary file added static/fonts/JetBrains/JetBrainsMono-Regular.ttf
Binary file not shown.
4 changes: 4 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"env": {
"HUGO_VERSION": "0.82.0"
}
},
"github": {
"enabled": true,
"silent": true
}
}

0 comments on commit 324e25e

Please sign in to comment.