Skip to content

Commit

Permalink
fix(projects): keep hsla and rgba consistent with unocss
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Oct 23, 2023
1 parent 56931a2 commit 566cce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/common/app-loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function addThemeColorCssVars() {
const { r, g, b } = getRgbOfColor(themeColor);
const cssVars = `--primary-color: ${r},${g},${b}`;
const cssVars = `--primary-color: ${r} ${g} ${b}`;
document.documentElement.style.cssText = cssVars;
}
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/theme/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function getCssVarByTokens(tokens: App.Theme.BaseToken) {
if (key === 'colors') {
cssVarsKey = removeRgbPrefix(cssVarsKey);
const { r, g, b } = getRgbOfColor(cssValue);
cssValue = `${r}, ${g}, ${b}`;
cssValue = `${r} ${g} ${b}`;
}

styles.push(`${cssVarsKey}: ${cssValue}`);
Expand Down

0 comments on commit 566cce2

Please sign in to comment.