fix(shadcn): check for empty css vars (#6733)

* fix(shadcn): check for empty css vars

* chore: changeset
This commit is contained in:
shadcn
2025-02-22 13:44:13 +04:00
committed by GitHub
parent b567f7a6c1
commit 779517a1d4
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"shadcn": patch
---
check for empty css vars

View File

@@ -24,7 +24,7 @@ export async function updateCssVars(
tailwindConfig?: z.infer<typeof registryItemTailwindSchema>["config"]
}
) {
if (!config.resolvedPaths.tailwindCss) {
if (!config.resolvedPaths.tailwindCss || !Object.keys(cssVars ?? {}).length) {
return
}