Skip to content

Commit dbdf38f

Browse files
authored
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
1 parent 803744e commit dbdf38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/colors/theme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,5 +358,5 @@ export const getBaseColor = (color: CssColor) => {
358358
};
359359

360360
export const getCssVariable = (colorType: string, colorNumber: ColorNumber) => {
361-
return `--ds-${colorType}-${getColorNameFromNumber(colorNumber).toLowerCase().replace(/\s/g, '-')}`;
361+
return `--ds-color-${colorType}-${getColorNameFromNumber(colorNumber).toLowerCase().replace(/\s/g, '-')}`;
362362
};

0 commit comments

Comments
 (0)