mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
const { nameClass } = require('../pluginUtils')
|
|
|
|
module.exports = function ({ matchUtilities }) {
|
|
matchUtilities({
|
|
font: (modifier, { theme }) => {
|
|
let value = theme.fontWeight[modifier]
|
|
if (value === undefined) {
|
|
return []
|
|
}
|
|
|
|
return { [nameClass('font', modifier)]: { 'font-weight': value } }
|
|
},
|
|
})
|
|
}
|