tailwindcss/jit/corePlugins/flexShrink.js

16 lines
397 B
JavaScript

const { asValue, nameClass } = require('../pluginUtils')
module.exports = function ({ matchUtilities, jit: { theme } }) {
matchUtilities({
'flex-shrink': (modifier, { theme }) => {
let value = asValue(modifier, theme.flexShrink)
if (value === undefined) {
return []
}
return { [nameClass('flex-shrink', modifier)]: { 'flex-shrink': value } }
},
})
}