From 752e2b69bdc095f085253714db44749acd299ebe Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 26 Jun 2025 12:18:32 +0200 Subject: [PATCH] fix(theme): colors autocomplete in app config --- src/templates.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates.ts b/src/templates.ts index a6f6930f..d4c17e65 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -158,13 +158,13 @@ import colors from 'tailwindcss/colors' const icons = ${JSON.stringify(uiConfig.icons)}; -type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' | (string & {}) +type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' type Color = Exclude | (string & {}) type AppConfigUI = { colors?: { ${options.theme?.colors?.map(color => `'${color}'?: Color`).join('\n\t\t')} - neutral?: NeutralColor + neutral?: NeutralColor | (string & {}) } icons?: Partial tv?: typeof defaultConfig