Skip to content

Commit e5a1e26

Browse files
authored
fix(types): allow color identifiers with dashes (#3896)
1 parent 113e2e7 commit e5a1e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ type Color = Exclude<keyof typeof colors, 'inherit' | 'current' | 'transparent'
114114
115115
type AppConfigUI = {
116116
colors?: {
117-
${options.theme?.colors?.map(color => `${color}?: Color`).join('\n\t\t')}
117+
${options.theme?.colors?.map(color => `'${color}'?: Color`).join('\n\t\t')}
118118
neutral?: NeutralColor
119119
}
120120
icons?: Partial<typeof icons>

0 commit comments

Comments
 (0)