-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathnuxt.schema.ts
39 lines (37 loc) · 1.06 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
import { field, group } from '@nuxt/content/preview'
export default defineNuxtSchema({
appConfig: {
ui: group({
title: 'UI',
description: 'UI configuration',
icon: 'i-ph-palette-fill',
fields: {
colors: group({
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']
})
})
}
})
}
})
declare module '@nuxt/schema' {
interface CustomAppConfig {
ui: {
icons: object
}
}
}