Skip to content

Commit

Permalink
fix: themeUtilities being overwritten in helpers.uno.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AskeLange committed Dec 1, 2023
1 parent dadba5d commit 53de797
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions components/ThemeConfiguration/helpers.uno.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function makeThemeUtilities(config, options) {
}
}
if (config.backgroundColors) {
themeUtilities.backgroundColor = {};
themeUtilities.backgroundColor ??= {};

// Add the color rules
Object.keys(config.backgroundColors || {}).forEach((key) => {
Expand All @@ -231,6 +231,8 @@ function makeThemeUtilities(config, options) {
}
}
if (config.borderColors) {
themeUtilities.borderColor ??= {};

// Add the color rules
Object.keys(config.borderColors || {}).forEach((key) => {
themeUtilities.borderColor[key] = getRightColorValue(
Expand All @@ -246,7 +248,8 @@ function makeThemeUtilities(config, options) {
}
}
if (config.textColors) {
themeUtilities.textColor = {};
themeUtilities.textColor ??= {};

// Add the color rules
Object.keys(config.textColors || {}).forEach((key) => {
themeUtilities.textColor[key] = getRightColorValue(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@limbo-works/theme-configuration",
"type": "module",
"version": "2.0.0",
"version": "2.0.1",
"main": "./nuxt.config.js",
"scripts": {
"dev": "nuxi prepare & nuxi dev .playground",
Expand Down

0 comments on commit 53de797

Please sign in to comment.