2019-08-22 16:55:23 -03:00
|
|
|
import _ from 'lodash'
|
|
|
|
|
|
|
|
|
|
export default function() {
|
|
|
|
|
return function({ addUtilities, e, theme, variants }) {
|
|
|
|
|
const utilities = _.fromPairs(
|
2019-12-30 09:18:00 -05:00
|
|
|
_.map(theme('strokeWidth'), (value, modifier) => {
|
2019-08-22 16:55:23 -03:00
|
|
|
return [
|
2019-12-30 09:18:00 -05:00
|
|
|
`.${e(`stroke-${modifier}`)}`,
|
2019-08-22 16:55:23 -03:00
|
|
|
{
|
2019-12-30 09:18:00 -05:00
|
|
|
strokeWidth: value,
|
2019-08-22 16:55:23 -03:00
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
addUtilities(utilities, variants('strokeWidth'))
|
|
|
|
|
}
|
|
|
|
|
}
|