Skip to content

Commit

Permalink
feat: add mix-blend-mode and background-blend-mode utilities
Browse files Browse the repository at this point in the history
Fixes #195
  • Loading branch information
muhammadsammy committed Apr 9, 2021
1 parent 84a8c48 commit 60ccef7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
43 changes: 42 additions & 1 deletion src/cli/lib/non-configurable/effects.ts
@@ -1 +1,42 @@
export default {};
const mixBlendMode = [
'mix-blend-normal',
'mix-blend-multiply',
'mix-blend-screen',
'mix-blend-overlay',
'mix-blend-darken',
'mix-blend-lighten',
'mix-blend-color-dodge',
'mix-blend-color-burn',
'mix-blend-hard-light',
'mix-blend-soft-light',
'mix-blend-difference',
'mix-blend-exclusion',
'mix-blend-hue',
'mix-blend-saturation',
'mix-blend-color',
'mix-blend-luminosity',
];

const backgroundBlendMode = [
'bg-blend-normal',
'bg-blend-multiply',
'bg-blend-screen',
'bg-blend-overlay',
'bg-blend-darken',
'bg-blend-lighten',
'bg-blend-color-dodge',
'bg-blend-color-burn',
'bg-blend-hard-light',
'bg-blend-soft-light',
'bg-blend-difference',
'bg-blend-exclusion',
'bg-blend-hue',
'bg-blend-saturation',
'bg-blend-color',
'bg-blend-luminosity',
];

export default {
mixBlendMode,
backgroundBlendMode,
};
2 changes: 1 addition & 1 deletion src/cli/types/classes.ts
Expand Up @@ -72,7 +72,7 @@ type TBordersCategoryItem =
| 'ringOffsetWidth'
| 'ringWidth';

type TEffectsCategoryItem = 'boxShadow' | 'opacity';
type TEffectsCategoryItem = 'boxShadow' | 'opacity' | 'mixBlendMode' | 'backgroundBlendMode';

type TFiltersCategoryItem =
| 'filter'
Expand Down

0 comments on commit 60ccef7

Please sign in to comment.