From b77e545cbc22599164f4defb3d49776377adb35e Mon Sep 17 00:00:00 2001 From: naaa760 Date: Mon, 17 Nov 2025 10:43:05 +0530 Subject: [PATCH] fix: add consistent spacing after variable declarations in update-css-vars.ts --- packages/shadcn/src/utils/updaters/update-css-vars.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/shadcn/src/utils/updaters/update-css-vars.ts b/packages/shadcn/src/utils/updaters/update-css-vars.ts index 144fb78306a..f6307d0e6fd 100644 --- a/packages/shadcn/src/utils/updaters/update-css-vars.ts +++ b/packages/shadcn/src/utils/updaters/update-css-vars.ts @@ -558,11 +558,13 @@ function updateThemePlugin(cssVars: z.infer) { isLocalHSLValue(value) || isColorValue(value) ? `--color-${variable.replace(/^--/, "")}` : `--${variable.replace(/^--/, "")}` + if (prop === "--color-sidebar-background") { prop = "--color-sidebar" } let propValue = `var(--${variable})` + if (prop === "--color-sidebar") { propValue = "var(--sidebar)" }