mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* implement matchUtilities2 * ensure animation names without keyframes are not prefixed * remove matchBase * call addUtilities for each group individually * WIP: Write plugins using matchUtilities2 * MORE * Fix arbitrary value support for fontSize * Fixes, update fixtures * Rebuild fixtures * Don't generate `divide` class with no modifier * Fixes, rebuild fixtures * Rename matchUtilities2 to matchUtilities * Delete bad tests * Remove temp files GROSS * Clean stuff up * Support no return in matchUtilities Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
19 lines
413 B
JavaScript
19 lines
413 B
JavaScript
export default function () {
|
|
return function ({ matchUtilities, theme, variants }) {
|
|
matchUtilities(
|
|
{
|
|
'backdrop-grayscale': (value) => {
|
|
return {
|
|
'--tw-backdrop-grayscale': `grayscale(${value})`,
|
|
}
|
|
},
|
|
},
|
|
{
|
|
values: theme('backdropGrayscale'),
|
|
variants: variants('backdropGrayscale'),
|
|
type: 'any',
|
|
}
|
|
)
|
|
}
|
|
}
|