-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
100 lines (89 loc) · 1.83 KB
/
nuxt.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
import { definePreset } from '@primevue/themes';
import Aura from '@primevue/themes/aura';
const Noir = definePreset(Aura, {
semantic: {
primary: {
50: '{zinc.50}',
100: '{zinc.100}',
200: '{zinc.200}',
300: '{zinc.300}',
400: '{zinc.400}',
500: '{zinc.500}',
600: '{zinc.600}',
700: '{zinc.700}',
800: '{zinc.800}',
900: '{zinc.900}',
950: '{zinc.950}'
},
colorScheme: {
light: {
primary: {
color: '{zinc.950}',
inverseColor: '#ffffff',
hoverColor: '{zinc.900}',
activeColor: '{zinc.800}'
},
highlight: {
background: '{zinc.950}',
focusBackground: '{zinc.700}',
color: '#ffffff',
focusColor: '#ffffff'
}
},
}
}
});
export default defineNuxtConfig({
app: {
head: {
charset: "utf-8",
viewport: "width=device-width, initial-scale=1",
},
},
ssr: false,
css: ["~/assets/css/tailwind.css", "primeicons/primeicons.css"],
devtools: {
vscode: {},
},
headlessui: {
prefix: "",
},
colorMode: {
preference: 'light'
},
modules: [
"@vueuse/nuxt",
"@pinia/nuxt",
"@nuxtjs/color-mode",
"nuxt-headlessui",
"@nuxt/test-utils/module",
'@primevue/nuxt-module',
"@nuxt/devtools",
"nuxt-directus",
"@nuxt/fonts",
"@nuxt/icon"
],
primevue: {
autoImport: true,
options: {
theme: {
preset: Noir,
options: {
darkModeSelector: '.dark-selector',
},
}
}
},
directus: {
url: process.env.NUXT_CMS_URL,
autoFetch: true,
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
compatibilityDate: "2024-07-23",
});