feat(module)!: move primary and gray inside colors object

This commit is contained in:
Benjamin Canac
2024-07-01 14:57:46 +02:00
parent 30bc3a1d76
commit ccbaf6ea15
5 changed files with 21 additions and 10 deletions

View File

@@ -94,8 +94,10 @@ const colors = ${JSON.stringify(options.colors)} as const;
const icons = ${JSON.stringify(nuxt.options.appConfig.ui.icons)};
type AppConfigUI = {
primary?: typeof colors[number]
gray?: 'slate' | 'cool' | 'zinc' | 'neutral' | 'stone'
colors?: {
primary?: typeof colors[number]
gray?: 'slate' | 'cool' | 'zinc' | 'neutral' | 'stone'
}
icons?: Partial<typeof icons>
} & DeepPartial<typeof ui>