Skip to content

Commit b104af0

Browse files
committed
feat: use Inter and JetBrains Mono fonts
1 parent d1d8478 commit b104af0

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ export default defineConfig({
134134
plugins: [pluginCollapsibleSections()],
135135
},
136136
customCss: [
137+
// Fonts
138+
"@fontsource-variable/inter",
139+
"@fontsource-variable/jetbrains-mono",
137140
// Path to your Tailwind base styles:
138141
"./src/tailwind.css",
139142
],

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"@astrojs/starlight-tailwind": "^2.0.3",
1818
"@astrojs/tailwind": "^5.1.2",
1919
"@expressive-code/plugin-collapsible-sections": "^0.35.3",
20+
"@fontsource-variable/inter": "^5.1.1",
21+
"@fontsource-variable/jetbrains-mono": "^5.1.2",
2022
"astro": "^4.16.6",
2123
"sharp": "^0.33.4",
2224
"starlight-image-zoom": "^0.1.0",

pnpm-lock.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tailwind.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
/* Dark mode colors. */
66
:root {
7+
--sl-font: "Inter Variable", sans-serif;
8+
--sl-font-mono: "JetBrains Mono Variable", monospace;
79
--sl-color-accent-low: #1a1d23;
810
--sl-color-accent: #d597e8;
911
--sl-color-accent-high: #76b6ef;

0 commit comments

Comments
 (0)