tailwindcss/src/plugins/height.js

14 lines
329 B
JavaScript
Raw Normal View History

2019-01-09 21:16:16 -05:00
import _ from 'lodash'
export default function () {
return function ({ addUtilities, config, e }) {
const utilities = _.fromPairs(_.map(config('height'), (value, modifier) => {
return [`.${e(`h-${modifier}`)}`, {
'height': value,
}]
}))
addUtilities(utilities, config('modules.height'))
}
}