tailwindcss/src/plugins/brightness.js

17 lines
359 B
JavaScript
Raw Normal View History

export default function () {
return function ({ matchUtilities, theme, variants }) {
matchUtilities(
{
brightness: (value) => {
return { '--tw-brightness': `brightness(${value})` }
},
},
{
values: theme('brightness'),
variants: variants('brightness'),
type: 'any',
}
)
}
}