mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
20 lines
436 B
JavaScript
20 lines
436 B
JavaScript
const { asLength, nameClass } = require('../pluginUtils')
|
|
|
|
module.exports = function ({ matchUtilities }) {
|
|
matchUtilities({
|
|
'ring-offset': (modifier, { theme }) => {
|
|
let value = asLength(modifier, theme['ringOffsetWidth'])
|
|
|
|
if (value === undefined) {
|
|
return []
|
|
}
|
|
|
|
return {
|
|
[nameClass('ring-offset', modifier)]: {
|
|
'--tw-ring-offset-width': value,
|
|
},
|
|
}
|
|
},
|
|
})
|
|
}
|