Skip to content

Commit

Permalink
fix(templates): allow any string in colors autocomplete
Browse files Browse the repository at this point in the history
Related to #2143

Co-Authored-By: Inesh Bose <[email protected]>
  • Loading branch information
benjamincanac and ineshbose committed Dec 24, 2024
1 parent ac54c75 commit 5183582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?: {
Expand Down

0 comments on commit 5183582

Please sign in to comment.