|
| 1 | +module.exports = function(variants) { |
| 2 | + return function({ addUtilities }) { |
| 3 | + addUtilities( |
| 4 | + { |
| 5 | + // Mix Blend Mode |
| 6 | + '.blend-normal': { mixBlendMode: 'normal' }, |
| 7 | + '.blend-multiply': { mixBlendMode: 'multiply' }, |
| 8 | + '.blend-screen': { mixBlendMode: 'screen' }, |
| 9 | + '.blend-overlay': { mixBlendMode: 'overlay' }, |
| 10 | + '.blend-darken': { mixBlendMode: 'darken' }, |
| 11 | + '.blend-lighten': { mixBlendMode: 'lighten' }, |
| 12 | + '.blend-color-dodge': { mixBlendMode: 'color-dodge' }, |
| 13 | + '.blend-color-burn': { mixBlendMode: 'color-burn' }, |
| 14 | + '.blend-hard-light': { mixBlendMode: 'hard-light' }, |
| 15 | + '.blend-soft-light': { mixBlendMode: 'soft-light' }, |
| 16 | + '.blend-difference': { mixBlendMode: 'difference' }, |
| 17 | + '.blend-exclusion': { mixBlendMode: 'exclusion' }, |
| 18 | + '.blend-hue': { mixBlendMode: 'hue' }, |
| 19 | + '.blend-saturation': { mixBlendMode: 'saturation' }, |
| 20 | + '.blend-color': { mixBlendMode: 'color' }, |
| 21 | + '.blend-luminosity': { mixBlendMode: 'luminosity' }, |
| 22 | + |
| 23 | + // Background Blend Mode |
| 24 | + '.bg-blend-normal': { backgroundBlendMode: 'normal' }, |
| 25 | + '.bg-blend-multiply': { backgroundBlendMode: 'multiply' }, |
| 26 | + '.bg-blend-screen': { backgroundBlendMode: 'screen' }, |
| 27 | + '.bg-blend-overlay': { backgroundBlendMode: 'overlay' }, |
| 28 | + '.bg-blend-darken': { backgroundBlendMode: 'darken' }, |
| 29 | + '.bg-blend-lighten': { backgroundBlendMode: 'lighten' }, |
| 30 | + '.bg-blend-color-dodge': { backgroundBlendMode: 'color-dodge' }, |
| 31 | + '.bg-blend-color-burn': { backgroundBlendMode: 'color-burn' }, |
| 32 | + '.bg-blend-hard-light': { backgroundBlendMode: 'hard-light' }, |
| 33 | + '.bg-blend-soft-light': { backgroundBlendMode: 'soft-light' }, |
| 34 | + '.bg-blend-difference': { backgroundBlendMode: 'difference' }, |
| 35 | + '.bg-blend-exclusion': { backgroundBlendMode: 'exclusion' }, |
| 36 | + '.bg-blend-hue': { backgroundBlendMode: 'hue' }, |
| 37 | + '.bg-blend-saturation': { backgroundBlendMode: 'saturation' }, |
| 38 | + '.bg-blend-color': { backgroundBlendMode: 'color' }, |
| 39 | + '.bg-blend-luminosity': { backgroundBlendMode: 'luminosity' }, |
| 40 | + |
| 41 | + // Isolate |
| 42 | + '.isolate': { isolation: 'isolate' }, |
| 43 | + '.isolate-none': { isolation: 'auto' }, |
| 44 | + }, |
| 45 | + variants |
| 46 | + ) |
| 47 | + } |
| 48 | +} |
0 commit comments