Skip to content

Commit ac32df5

Browse files
committed
feat(cli): update color value detection for cssVars
from shadcn
1 parent f895d7b commit ac32df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/utils/updaters/update-css-vars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,6 @@ export function isColorValue(value: string) {
906906
|| value.startsWith('rgb')
907907
|| value.startsWith('#')
908908
|| value.startsWith('oklch')
909-
|| value.startsWith('var(--color-')
909+
|| value.includes('var(--color-')
910910
)
911911
}

0 commit comments

Comments
 (0)