From dbdf38fbb29a93705832328f1ca171cef6a9f2cd Mon Sep 17 00:00:00 2001 From: Tobias Barsnes Date: Thu, 29 Aug 2024 14:06:43 +0200 Subject: [PATCH] fix: correct css var in color modal (#2349) we were displaying the wrong css variable in our color modals on storefront and theme. First reported in Slack --- packages/cli/src/colors/theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/colors/theme.ts b/packages/cli/src/colors/theme.ts index 2cd13e2934..eae1baed59 100644 --- a/packages/cli/src/colors/theme.ts +++ b/packages/cli/src/colors/theme.ts @@ -358,5 +358,5 @@ export const getBaseColor = (color: CssColor) => { }; export const getCssVariable = (colorType: string, colorNumber: ColorNumber) => { - return `--ds-${colorType}-${getColorNameFromNumber(colorNumber).toLowerCase().replace(/\s/g, '-')}`; + return `--ds-color-${colorType}-${getColorNameFromNumber(colorNumber).toLowerCase().replace(/\s/g, '-')}`; };