Rename textColors to textColor
This commit is contained in:
parent
76b208dc83
commit
ec0b9ae68e
6 changed files with 5 additions and 5 deletions
18
src/plugins/textColor.js
Normal file
18
src/plugins/textColor.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(`text-${modifier}`)}`,
|
||||
{
|
||||
color: value,
|
||||
},
|
||||
]
|
||||
})
|
||||
)
|
||||
|
||||
addUtilities(utilities, variants)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue