Skip to content

Commit d17d68c

Browse files
committed
(style) updated fonts, using Public Sans, Fira Code, and Syne
1 parent dcd0b12 commit d17d68c

File tree

5 files changed

+68
-11
lines changed

5 files changed

+68
-11
lines changed

astro.config.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export default defineConfig({
6767
}
6868
],
6969
customCss: [
70-
// Path to your Tailwind base styles:
70+
'@fontsource/syne/700.css',
71+
'@fontsource/public-sans',
72+
'@fontsource/fira-code',
7173
'./src/tailwind.css',
7274
],
7375

package-lock.json

+52-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"@astrojs/starlight-tailwind": "^3.0.0",
1717
"@astrojs/tailwind": "^5.1.4",
1818
"@effect/platform-node": "^0.70.0",
19+
"@fontsource/fira-code": "^5.2.5",
20+
"@fontsource/public-sans": "^5.2.5",
21+
"@fontsource/syne": "^5.2.5",
1922
"astro": "^5.1.7",
2023
"date-fns": "^4.1.0",
2124
"effect": "^3.12.5",

src/tailwind.css

+5
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44

55
.sl-markdown-content img {
66
background: white;
7+
}
8+
9+
.site-title {
10+
font-family: 'Syne', 'Arial Narrow Bold', sans-serif;
11+
font-weight: 800;
712
}

tailwind.config.mjs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
/** @type {import('tailwindcss').Config} */
21

2+
/** @type {import('tailwindcss').Config} */
33
import starlightPlugin from '@astrojs/starlight-tailwind';
44

5+
const defaultTheme = require('tailwindcss/defaultTheme');
6+
57
// custom color theme
68
const accent = { 200: '#8FE3E8', 600: '#0A6190', 900: '#014063', 950: '#002B43' };
79
const gray = { 100: '#f3f7f9', 200: '#e7eff2', 300: '#bac4c8', 400: '#7b8f96', 500: '#495c62', 700: '#2a3b41', 800: '#182a2f', 900: '#121a1c' };
@@ -15,10 +17,8 @@ export default {
1517
accent, gray,
1618
},
1719
fontFamily: {
18-
// Your preferred text font. Starlight uses a system font stack by default.
19-
sans: ['"Atkinson Hyperlegible"'],
20-
// Your preferred code font. Starlight uses system monospace fonts by default.
21-
mono: ['"IBM Plex Mono"'],
20+
sans: ['"Public Sans"', ...defaultTheme.fontFamily.sans],
21+
mono: ['"Fira Code"', ...defaultTheme.fontFamily.mono],
2222
},
2323
},
2424
},

0 commit comments

Comments
 (0)