Support nested object for textColor plugin
This commit is contained in:
parent
c3c9cdf5d6
commit
bfde7e4d6e
3 changed files with 68 additions and 15 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import _ from 'lodash'
|
||||
import flattenColorPalette from '../util/flattenColorPalette'
|
||||
|
||||
export default function() {
|
||||
return function({ addUtilities, e, config }) {
|
||||
const utilities = _.fromPairs(
|
||||
_.map(config('theme.textColor'), (value, modifier) => {
|
||||
_.map(flattenColorPalette(config('theme.textColor')), (value, modifier) => {
|
||||
return [
|
||||
`.${e(`text-${modifier}`)}`,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue