mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
16 lines
393 B
JavaScript
16 lines
393 B
JavaScript
const { nameClass } = require('../pluginUtils')
|
|
|
|
module.exports = function ({ matchUtilities }) {
|
|
matchUtilities({
|
|
object: (modifier, { theme }) => {
|
|
if (modifier === '' || theme.objectPosition[modifier] === undefined) {
|
|
return []
|
|
}
|
|
|
|
return {
|
|
[nameClass('object', modifier)]: { 'object-position': theme.objectPosition[modifier] },
|
|
}
|
|
},
|
|
})
|
|
}
|