generated from becem-gharbi/directus-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
61 lines (53 loc) · 1.37 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
60
61
<template>
<NaiveConfig :theme-config="themeConfig">
<ClientOnly>
<n-notification-provider placement="bottom-right">
<NotificationNetwork />
</n-notification-provider>
</ClientOnly>
<NuxtLoadingIndicator :color="themeConfig.light?.common?.primaryColor" />
<n-message-provider>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</n-message-provider>
</NaiveConfig>
</template>
<script setup lang="ts">
import { 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>