-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathnuxt.schema.ts
93 lines (91 loc) · 2.92 KB
/
nuxt.schema.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
import { field, group } from '@nuxt/content/preview'
export default defineNuxtSchema({
appConfig: {
ui: group({
title: 'UI',
description: 'UI Customization.',
icon: 'i-mdi-palette-outline',
fields: {
colors: group({
title: 'Colors',
description: 'Manage main colors of your application',
icon: 'i-mdi-palette-outline',
fields: {
primary: field({
type: 'string',
title: 'Primary',
description: 'Primary color of your UI.',
icon: 'i-mdi-palette-outline',
default: 'green',
required: ['red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose']
}),
neutral: field({
type: 'string',
title: 'Neutral',
description: 'Neutral color of your UI.',
icon: 'i-mdi-palette-outline',
default: 'slate',
required: ['slate', 'gray', 'zinc', 'neutral', 'stone']
})
}
}),
icons: group({
title: 'Icons',
description: 'Manage icons used in UI Pro.',
icon: 'i-mdi-application-settings-outline',
fields: {
search: field({
type: 'icon',
title: 'Search Bar',
description: 'Icon to display in the search bar.',
icon: 'i-mdi-magnify',
default: 'i-lucide-search'
}),
dark: field({
type: 'icon',
title: 'Dark mode',
description: 'Icon of color mode button for dark mode.',
icon: 'i-mdi-moon-waning-crescent',
default: 'i-lucide-moon'
}),
light: field({
type: 'icon',
title: 'Light mode',
description: 'Icon of color mode button for light mode.',
icon: 'i-mdi-white-balance-sunny',
default: 'i-lucide-sun'
}),
external: field({
type: 'icon',
title: 'External Link',
description: 'Icon for external link.',
icon: 'i-mdi-arrow-top-right',
default: 'i-lucide-external-link'
}),
chevron: field({
type: 'icon',
title: 'Chevron',
description: 'Icon for chevron.',
icon: 'i-mdi-chevron-down',
default: 'i-lucide-chevron-down'
}),
hash: field({
type: 'icon',
title: 'Hash',
description: 'Icon for hash anchors.',
icon: 'i-ph-hash',
default: 'i-lucide-hash'
})
}
})
}
})
}
})
declare module '@nuxt/schema' {
interface CustomAppConfig {
ui: {
icons: object
}
}
}