-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
68 lines (67 loc) · 1.51 KB
/
astro.config.ts
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { defineConfig, passthroughImageService } from 'astro/config'
import solid from '@astrojs/solid-js'
import mdx from '@astrojs/mdx'
import unocss from 'unocss/astro'
import nested from 'postcss-nested'
import cssnano from 'cssnano'
import {
presetAttributify,
presetIcons,
presetMini,
presetWebFonts,
transformerVariantGroup,
} from 'unocss'
// https://astro.build/config
export default defineConfig({
vite: {
css: {
postcss: {
plugins: [nested as any, cssnano],
},
},
},
trailingSlash: 'never',
markdown: {
shikiConfig: {
wrap: true,
theme: 'vitesse-dark',
},
syntaxHighlight: 'shiki',
},
server: {
host: true,
},
image: {
service: passthroughImageService(),
},
integrations: [
mdx({
extendMarkdownConfig: true,
}),
solid(),
unocss({
injectReset: true,
shortcuts: {
'text-primary': 'dark:text-#fdfdfd light:text-#161616',
'text-tertiary': 'dark:text-#a3a3a3 light:text-#6f6f6f',
'page-header': 'dark:(b-b-1 border-neutral-900) light:(b-b-1 bg-#fff)',
'page-main': 'dark:bg-black light:bg-#fff',
},
transformers: [transformerVariantGroup()],
presets: [
// presetForme(),
presetAttributify(),
presetMini({
dark: {
light: '[data-theme=light]',
dark: '[data-theme=dark]',
},
}),
presetIcons({
autoInstall: true,
}),
presetWebFonts(),
],
}),
],
})