generated from becem-gharbi/nuxt-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.vue
59 lines (53 loc) · 1.38 KB
/
app.vue
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
<template>
<naive-config :theme-config="themeConfig">
<client-only>
<n-notification-provider placement="bottom-right">
<NotificationNetwork />
</n-notification-provider>
</client-only>
<nuxt-loading-indicator :color="themeConfig.light?.common?.primaryColor" />
<n-message-provider>
<nuxt-layout>
<NuxtPage />
</nuxt-layout>
</n-message-provider>
</naive-config>
</template>
<script setup lang="ts">
import type { ThemeConfig } from '@bg-dev/nuxt-naiveui'
import { theme } from '#tailwind-config'
const themeConfig = ref<ThemeConfig>({
shared: {
common: {
fontFamily: theme.fontFamily.sans.join(','),
lineHeight: theme.lineHeight.normal,
borderRadius: '6px'
},
Form: {
feedbackPadding: theme.padding[2]
}
},
light: {
common: {
primaryColor: theme.colors.violet[600],
primaryColorHover: theme.colors.violet[500],
primaryColorPressed: theme.colors.violet[700],
borderColor: theme.colors.gray[300]
},
Card: {
borderColor: theme.colors.gray[300]
}
},
dark: {
common: {
primaryColor: theme.colors.violet[500],
primaryColorHover: theme.colors.violet[400],
primaryColorPressed: theme.colors.violet[600],
borderColor: theme.colors.gray[800]
},
Card: {
borderColor: theme.colors.gray[800]
}
}
})
</script>