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

@ -1,9 +1,9 @@
import _ from 'lodash'
export default function() {
return function({ addUtilities, e, config, variants }) {
return function({ addUtilities, e, theme, variants }) {
const utilities = _.fromPairs(
_.map(config('theme.backgroundPosition'), (value, modifier) => {
_.map(theme('backgroundPosition'), (value, modifier) => {
return [
`.${e(`bg-${modifier}`)}`,
{