fix(templates): allow any string in colors autocomplete

Related to #2143

Co-Authored-By: Inesh Bose <56732164+ineshbose@users.noreply.github.com>
This commit is contained in:
Benjamin Canac
2024-12-24 16:56:22 +01:00
parent ac54c7523c
commit 5183582a90

View File

@@ -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<keyof typeof colors, 'inherit' | 'current' | 'transparent' | 'black' | 'white' | NeutralColor>
type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' | (string & {})
type Color = Exclude<keyof typeof colors, 'inherit' | 'current' | 'transparent' | 'black' | 'white' | NeutralColor> | (string & {})
type AppConfigUI = {
colors?: {