forked from rDrama/rDrama
31 lines
671 B
JavaScript
31 lines
671 B
JavaScript
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = _default;
|
||
|
|
||
|
function _default() {
|
||
|
return function ({
|
||
|
config,
|
||
|
matchUtilities,
|
||
|
theme,
|
||
|
variants
|
||
|
}) {
|
||
|
matchUtilities({
|
||
|
'backdrop-brightness': value => {
|
||
|
return {
|
||
|
'--tw-backdrop-brightness': `brightness(${value})`,
|
||
|
...(config('mode') === 'jit' ? {
|
||
|
'@defaults backdrop-filter': {},
|
||
|
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
||
|
} : {})
|
||
|
};
|
||
|
}
|
||
|
}, {
|
||
|
values: theme('backdropBrightness'),
|
||
|
variants: variants('backdropBrightness'),
|
||
|
type: 'any'
|
||
|
});
|
||
|
};
|
||
|
}
|