diff --git a/.changeset/calm-dolphins-cough.md b/.changeset/calm-dolphins-cough.md new file mode 100644 index 0000000000..9e064a57fe --- /dev/null +++ b/.changeset/calm-dolphins-cough.md @@ -0,0 +1,5 @@ +--- +"shadcn": patch +--- + +Revert "fix: handling of shouldOverwriteCssVars" diff --git a/packages/shadcn/src/utils/add-components.ts b/packages/shadcn/src/utils/add-components.ts index 1b8e2e6569..67eb7dc63e 100644 --- a/packages/shadcn/src/utils/add-components.ts +++ b/packages/shadcn/src/utils/add-components.ts @@ -327,7 +327,8 @@ async function shouldOverwriteCssVars( components: z.infer["name"][], config: z.infer ) { - let result = await fetchRegistry(components) + let registryItems = await resolveRegistryItems(components, config) + let result = await fetchRegistry(registryItems) const payload = z.array(registryItemSchema).parse(result) return payload.some(