We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b567f7a commit 779517aCopy full SHA for 779517a
2 files changed
.changeset/shaggy-months-tease.md
@@ -0,0 +1,5 @@
1
+---
2
+"shadcn": patch
3
4
+
5
+check for empty css vars
packages/shadcn/src/utils/updaters/update-css-vars.ts
@@ -24,7 +24,7 @@ export async function updateCssVars(
24
tailwindConfig?: z.infer<typeof registryItemTailwindSchema>["config"]
25
}
26
) {
27
- if (!config.resolvedPaths.tailwindCss) {
+ if (!config.resolvedPaths.tailwindCss || !Object.keys(cssVars ?? {}).length) {
28
return
29
30
0 commit comments