From d9cdc3f7ae69e571de7dc116effc381ad76685c3 Mon Sep 17 00:00:00 2001 From: shadcn Date: Wed, 16 Jul 2025 18:22:40 +0400 Subject: [PATCH] Revert "fix: handling of shouldOverwriteCssVars" (#7833) * Revert "fix: handling of shouldOverwriteCssVars (#7829)" This reverts commit ed5237c231f3b70107131bd7ba517e73b8c9014d. * fix: revert --- .changeset/calm-dolphins-cough.md | 5 +++++ packages/shadcn/src/utils/add-components.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/calm-dolphins-cough.md 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(