forked from rDrama/rDrama
1
0
Fork 0
rDrama/node_modules/tailwindcss/lib/plugins/backdropHueRotate.js

31 lines
669 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
function _default() {
return function ({
config,
matchUtilities,
theme,
variants
}) {
matchUtilities({
'backdrop-hue-rotate': value => {
return {
'--tw-backdrop-hue-rotate': `hue-rotate(${value})`,
...(config('mode') === 'jit' ? {
'@defaults backdrop-filter': {},
'backdrop-filter': 'var(--tw-backdrop-filter)'
} : {})
};
}
}, {
values: theme('backdropHueRotate'),
variants: variants('backdropHueRotate'),
type: 'any'
});
};
}