Skip to content

Commit

Permalink
migrate to variable fonts
Browse files Browse the repository at this point in the history
this way I don't have to worry about including all the font weights I use
  • Loading branch information
alissonlauffer committed Jul 10, 2024
1 parent 30b7955 commit 53490d4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/tailwind": "^5.1.0",
"@fontsource/fira-mono": "^5.0.13",
"@fontsource/inter": "^5.0.19",
"@fontsource-variable/fira-code": "^5.0.18",
"@fontsource-variable/inter": "^5.0.19",
"astro": "^4.11.5",
"extract-colors": "^4.0.6",
"tailwindcss": "^3.4.4",
Expand Down
3 changes: 1 addition & 2 deletions src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import "@fontsource/inter/400.css";
import "@fontsource/inter/700.css";
import "@fontsource-variable/inter";
---

<html lang="en">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/go.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import "@fontsource/fira-mono/400.css";
import "@fontsource-variable/fira-code";
import MainLayout from "../layouts/MainLayout.astro";
import { Picture } from "astro:assets";
Expand Down Expand Up @@ -64,6 +64,6 @@ import LogoWhite from "../img/logo-white.png";

<style>
pre {
font-family: "Fira Mono", monospace;
font-family: "Fira Code Variable", monospace;
}
</style>
2 changes: 1 addition & 1 deletion src/pages/nowplaying-dom.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import "@fontsource/inter/700.css";
import "@fontsource-variable/inter";
---

<script>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config: Config = {
theme: {
extend: {
fontFamily: {
sans: ["Inter", "sans-serif"],
sans: ["Inter Variable", "sans-serif"],
},
},
},
Expand Down

0 comments on commit 53490d4

Please sign in to comment.