18 lines
403 B
JavaScript
18 lines
403 B
JavaScript
import _ from 'lodash'
|
|
|
|
export default function() {
|
|
return function({ addUtilities, e, theme, variants }) {
|
|
const utilities = _.fromPairs(
|
|
_.map(theme('lineHeight'), (value, modifier) => {
|
|
return [
|
|
`.${e(`leading-${modifier}`)}`,
|
|
{
|
|
'line-height': value,
|
|
},
|
|
]
|
|
})
|
|
)
|
|
|
|
addUtilities(utilities, variants('lineHeight'))
|
|
}
|
|
}
|