Pass colors to theme closures

This commit is contained in:
Adam Wathan 2021-06-19 14:31:28 -04:00
parent 1d72dc2699
commit 359252c9b4

View file

@ -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')