Rename backgroundColors to backgroundColor

This commit is contained in:
Adam Wathan 2019-02-14 15:20:07 -05:00
parent d3c65e55af
commit 376daf3345
6 changed files with 5 additions and 5 deletions

View file

@ -0,0 +1,18 @@
import _ from 'lodash'
export default function({ values, variants }) {
return function({ addUtilities, e }) {
const utilities = _.fromPairs(
_.map(values, (value, modifier) => {
return [
`.${e(`bg-${modifier}`)}`,
{
'background-color': value,
},
]
})
)
addUtilities(utilities, variants)
}
}