-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
38 lines (37 loc) · 1.03 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { defineConfig } from 'astro/config'
import sitemap from '@astrojs/sitemap'
import react from '@astrojs/react'
import image from '@astrojs/image'
import tailwind from '@astrojs/tailwind'
import addClasses from 'rehype-add-classes'
// https://astro.build/config
export default defineConfig({
site: 'https://uses.craftz.dog/',
integrations: [
sitemap(),
react(),
image({
serviceEntryPoint: '@astrojs/image/sharp'
}),
tailwind()
],
markdown: {
extendDefaultPlugins: true,
rehypePlugins: [
[
addClasses,
{
h1: 'text-4xl font-bold font-mplus',
h2: 'text-2xl font-bold font-mplus',
h3: 'text-xl font-bold font-mplus',
h4: 'text-lg font-bold font-mplus',
h5: 'font-bold font-mplus',
h6: 'font-bold font-mplus',
img: 'border border-slate-300 dark:border-zinc-700 rounded-xl mb-6',
p: 'mb-6',
a: 'underline underline-offset-2 hover:text-orange-500 decoration-orange-500'
}
]
]
}
})