tailwindcss/jit/corePlugins/fontWeight.js

15 lines
346 B
JavaScript
Raw Normal View History

const { nameClass } = require('../pluginUtils')
2021-04-02 11:58:41 -04:00
module.exports = function ({ matchUtilities }) {
matchUtilities({
font: (modifier, { theme }) => {
let value = theme.fontWeight[modifier]
if (value === undefined) {
return []
}
return { [nameClass('font', modifier)]: { 'font-weight': value } }
},
})
}