Rename backgroundColors to backgroundColor
This commit is contained in:
parent
d3c65e55af
commit
376daf3345
6 changed files with 5 additions and 5 deletions
18
src/plugins/backgroundColor.js
Normal file
18
src/plugins/backgroundColor.js
Normal 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue