Make theme config directly accessible in the plugins

This commit is contained in:
Michaël De Boey 2019-04-18 23:29:07 +02:00
parent ab07e68097
commit d4b2b8b755
No known key found for this signature in database
GPG key ID: D14AE6F0880EF592
40 changed files with 96 additions and 86 deletions

View file

@ -2,8 +2,8 @@ import _ from 'lodash'
import flattenColorPalette from '../util/flattenColorPalette'
export default function() {
return function({ addUtilities, e, config, variants }) {
const colors = flattenColorPalette(config('theme.borderColor'))
return function({ addUtilities, e, theme, variants }) {
const colors = flattenColorPalette(theme('borderColor'))
const utilities = _.fromPairs(
_.map(_.omit(colors, 'default'), (value, modifier) => {