Skip to content

Commit

Permalink
fix: support DEFAULT colors in the pre-load script
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Aug 3, 2023
1 parent 18e0d8e commit 13db8fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ module.exports = (options = {}) => {
config.theme.colors = Object.entries(config.theme.colors)
.flatMap(([k, v]) => {
if (typeof v === "object") {
const items = Object.entries(v).map(([k2, v2]) => [k + "-" + k2, v2]);
const items = Object.entries(v).map(([k2, v2]) => [
k2 === "DEFAULT" ? k : k + "-" + k2,
v2,
]);
return items;
} else {
return [[k, v]];
Expand Down

0 comments on commit 13db8fb

Please sign in to comment.