Skip to content

Commit 752e2b6

Browse files
committed
fix(theme): colors autocomplete in app config
1 parent 6237663 commit 752e2b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/templates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ import colors from 'tailwindcss/colors'
158158
159159
const icons = ${JSON.stringify(uiConfig.icons)};
160160
161-
type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' | (string & {})
161+
type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone'
162162
type Color = Exclude<keyof typeof colors, 'inherit' | 'current' | 'transparent' | 'black' | 'white' | NeutralColor> | (string & {})
163163
164164
type AppConfigUI = {
165165
colors?: {
166166
${options.theme?.colors?.map(color => `'${color}'?: Color`).join('\n\t\t')}
167-
neutral?: NeutralColor
167+
neutral?: NeutralColor | (string & {})
168168
}
169169
icons?: Partial<typeof icons>
170170
tv?: typeof defaultConfig

0 commit comments

Comments
 (0)