Skip to content

Commit 60ccef7

Browse files
committed
feat: add mix-blend-mode and background-blend-mode utilities
Fixes #195
1 parent 84a8c48 commit 60ccef7

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed
+42-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
export default {};
1+
const mixBlendMode = [
2+
'mix-blend-normal',
3+
'mix-blend-multiply',
4+
'mix-blend-screen',
5+
'mix-blend-overlay',
6+
'mix-blend-darken',
7+
'mix-blend-lighten',
8+
'mix-blend-color-dodge',
9+
'mix-blend-color-burn',
10+
'mix-blend-hard-light',
11+
'mix-blend-soft-light',
12+
'mix-blend-difference',
13+
'mix-blend-exclusion',
14+
'mix-blend-hue',
15+
'mix-blend-saturation',
16+
'mix-blend-color',
17+
'mix-blend-luminosity',
18+
];
19+
20+
const backgroundBlendMode = [
21+
'bg-blend-normal',
22+
'bg-blend-multiply',
23+
'bg-blend-screen',
24+
'bg-blend-overlay',
25+
'bg-blend-darken',
26+
'bg-blend-lighten',
27+
'bg-blend-color-dodge',
28+
'bg-blend-color-burn',
29+
'bg-blend-hard-light',
30+
'bg-blend-soft-light',
31+
'bg-blend-difference',
32+
'bg-blend-exclusion',
33+
'bg-blend-hue',
34+
'bg-blend-saturation',
35+
'bg-blend-color',
36+
'bg-blend-luminosity',
37+
];
38+
39+
export default {
40+
mixBlendMode,
41+
backgroundBlendMode,
42+
};

src/cli/types/classes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type TBordersCategoryItem =
7272
| 'ringOffsetWidth'
7373
| 'ringWidth';
7474

75-
type TEffectsCategoryItem = 'boxShadow' | 'opacity';
75+
type TEffectsCategoryItem = 'boxShadow' | 'opacity' | 'mixBlendMode' | 'backgroundBlendMode';
7676

7777
type TFiltersCategoryItem =
7878
| 'filter'

0 commit comments

Comments
 (0)