From 359252c9b429e81217c28eb3ca7bab73d8f81e6d Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Sat, 19 Jun 2021 14:31:28 -0400 Subject: [PATCH] Pass colors to theme closures --- src/util/resolveConfig.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/resolveConfig.js b/src/util/resolveConfig.js index 3da92b8b63a6..3892dbc16264 100644 --- a/src/util/resolveConfig.js +++ b/src/util/resolveConfig.js @@ -13,8 +13,10 @@ import negateValue from './negateValue' import * as corePlugins from '../plugins' import configurePlugins from './configurePlugins' import defaultConfig from '../../stubs/defaultConfig.stub' +import colors from '../../colors' const configUtils = { + colors, negative(scale) { return Object.keys(scale) .filter((key) => scale[key] !== '0')