Skip to content

Commit c11698c

Browse files
authored
Merge pull request #46 from mattaningram/claude/upgrade-astro-fonts-do8Iy
Update to Astro 6 + Fonts API
2 parents 1876833 + b884228 commit c11698c

7 files changed

Lines changed: 397 additions & 628 deletions

File tree

astro.config.mjs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
import { defineConfig } from 'astro/config'
1+
import { defineConfig, fontProviders } from 'astro/config'
22

33
import icon from 'astro-icon'
44

55
// https://astro.build/config
66
export default defineConfig({
77
site: 'https://mattaningram.com',
88

9+
fonts: [
10+
{
11+
provider: fontProviders.google(),
12+
name: 'Figtree',
13+
cssVariable: '--font-figtree',
14+
weights: ['300 700'],
15+
},
16+
{
17+
provider: fontProviders.google(),
18+
name: 'Lora',
19+
cssVariable: '--font-lora',
20+
weights: [400, 500],
21+
},
22+
],
23+
924
image: {
1025
responsiveStyles: true,
1126
},

0 commit comments

Comments
 (0)