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

31 lines
596 B
JavaScript

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