From 5183582a90c0d86bd986ef0f280bc58e740c6458 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 24 Dec 2024 16:56:22 +0100 Subject: [PATCH] fix(templates): allow any string in colors autocomplete Related to #2143 Co-Authored-By: Inesh Bose <56732164+ineshbose@users.noreply.github.com> --- src/templates.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates.ts b/src/templates.ts index 6a41418eda..82a8c01ccf 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -84,8 +84,8 @@ import colors from 'tailwindcss/colors' const icons = ${JSON.stringify(uiConfig.icons)}; -type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' -type Color = Exclude +type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' | (string & {}) +type Color = Exclude | (string & {}) type AppConfigUI = { colors?: {