Skip to content

Commit

Permalink
Merge pull request #45 from arlyon/fix/default-colours
Browse files Browse the repository at this point in the history
fix: support DEFAULT colors in the pre-load script
  • Loading branch information
arlyon committed Feb 15, 2024
2 parents c43af73 + 13db8fb commit 4c40fbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.js
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 4c40fbd

Please sign in to comment.