Skip to content

Commit

Permalink
fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
mvllow committed Jun 30, 2021
1 parent fbc12a5 commit 5c6005b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ function getVariantPalette(variant = "base") {
}

exports.decorateConfig = (config) => {
let palette = getVariantPalette(config.theme.variant || "base");
const variant = (config.theme && config.theme.variant) || "base";
const palette = getVariantPalette(variant);

const colors = {
black: palette.overlay,
Expand Down

0 comments on commit 5c6005b

Please sign in to comment.