Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"@astrojs/sitemap": "^3.7.3",
"@fontsource/open-sans": "^5.3.0",
"@fontsource-variable/open-sans": "^5.3.0",
"@iconify-json/fa-brands": "^1.2.2",
"@iconify-json/fa-solid": "^1.2.2",
"@iconify-json/mdi": "^1.2.3",
Expand Down
4 changes: 3 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
import 'bootstrap/dist/css/bootstrap.min.css';
import '@fontsource/open-sans/400.css';
// Variable font: one file covers 300-800, so bold and heading weights are
// real rather than synthesized by the browser.
import '@fontsource-variable/open-sans';

interface Props {
title: string;
Expand Down
8 changes: 7 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
body {
font-family: 'Open Sans', sans-serif;
font-family: 'Open Sans Variable', 'Open Sans', sans-serif;
overflow-y: scroll;
background-color: #efefef;
}

/* Bootstrap sets headings to 500. Now that the variable font actually has
that weight, keep headings at the regular weight instead. */
h1, h2, h3, h4, h5, h6 {
font-weight: 400;
}

h1 {
font-size: 2rem;
margin-bottom: 0.75rem;
Expand Down