mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
20 lines
470 B
JavaScript
20 lines
470 B
JavaScript
const { asValue, nameClass } = require('../pluginUtils')
|
|
|
|
module.exports = function ({ matchUtilities }) {
|
|
matchUtilities({
|
|
'placeholder-opacity': (modifier, { theme }) => {
|
|
let value = asValue(modifier, theme.placeholderOpacity)
|
|
|
|
if (value === undefined) {
|
|
return []
|
|
}
|
|
|
|
return {
|
|
[`${nameClass('placeholder-opacity', modifier)}::placeholder`]: {
|
|
'--tw-placeholder-opacity': value,
|
|
},
|
|
}
|
|
},
|
|
})
|
|
}
|