-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
50 lines (50 loc) · 1.46 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
// { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
// { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
// { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' },
// { rel: 'manifest', href: '/site.webmanifest' }
],
}
},
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: ['@nuxtjs/color-mode', '@nuxtjs/tailwindcss', '@nuxt/icon'],
colorMode: {
classSuffix: '',
preference: 'system',
fallback: 'light',
dataValue: 'theme',
storageKey: 'theme'
},
tailwindcss: {
config: {
darkMode: 'class',
daisyui: {
themes: [
{
light: {
...require('daisyui/src/theming/themes')['light'],
primary: '#3b82f6',
'base-100': '#ffffff',
},
dark: {
...require('daisyui/src/theming/themes')['dark'],
primary: '#3b82f6',
'base-100': '#1f2937',
}
}
]
}
}
}
})