-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add mix-blend-mode utilities * Rename mix-blend-mode utilities to `mix-blend-*` Co-Authored-By: Peter Neupauer <[email protected]> * Add `background-blend-mode` utilities Co-Authored-By: Peter Neupauer <[email protected]> Co-authored-by: Peter Neupauer <[email protected]>
- Loading branch information
1 parent
21a96af
commit 1cb060d
Showing
14 changed files
with
3,146 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
768 changes: 768 additions & 0 deletions
768
__tests__/fixtures/tailwind-output-no-color-opacity.css
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('../../lib/plugins/backgroundBlendMode').default() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('../../lib/plugins/mixBlendMode').default() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export default function () { | ||
return function ({ addUtilities, variants }) { | ||
addUtilities( | ||
{ | ||
'.bg-blend-normal': { 'background-blend-mode': 'normal' }, | ||
'.bg-blend-multiply': { 'background-blend-mode': 'multiply' }, | ||
'.bg-blend-screen': { 'background-blend-mode': 'screen' }, | ||
'.bg-blend-overlay': { 'background-blend-mode': 'overlay' }, | ||
'.bg-blend-darken': { 'background-blend-mode': 'darken' }, | ||
'.bg-blend-lighten': { 'background-blend-mode': 'lighten' }, | ||
'.bg-blend-color-dodge': { 'background-blend-mode': 'color-dodge' }, | ||
'.bg-blend-color-burn': { 'background-blend-mode': 'color-burn' }, | ||
'.bg-blend-hard-light': { 'background-blend-mode': 'hard-light' }, | ||
'.bg-blend-soft-light': { 'background-blend-mode': 'soft-light' }, | ||
'.bg-blend-difference': { 'background-blend-mode': 'difference' }, | ||
'.bg-blend-exclusion': { 'background-blend-mode': 'exclusion' }, | ||
'.bg-blend-hue': { 'background-blend-mode': 'hue' }, | ||
'.bg-blend-saturation': { 'background-blend-mode': 'saturation' }, | ||
'.bg-blend-color': { 'background-blend-mode': 'color' }, | ||
'.bg-blend-luminosity': { 'background-blend-mode': 'luminosity' }, | ||
}, | ||
variants('backgroundBlendMode') | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export default function () { | ||
return function ({ addUtilities, variants }) { | ||
addUtilities( | ||
{ | ||
'.mix-blend-normal': { 'mix-blend-mode': 'normal' }, | ||
'.mix-blend-multiply': { 'mix-blend-mode': 'multiply' }, | ||
'.mix-blend-screen': { 'mix-blend-mode': 'screen' }, | ||
'.mix-blend-overlay': { 'mix-blend-mode': 'overlay' }, | ||
'.mix-blend-darken': { 'mix-blend-mode': 'darken' }, | ||
'.mix-blend-lighten': { 'mix-blend-mode': 'lighten' }, | ||
'.mix-blend-color-dodge': { 'mix-blend-mode': 'color-dodge' }, | ||
'.mix-blend-color-burn': { 'mix-blend-mode': 'color-burn' }, | ||
'.mix-blend-hard-light': { 'mix-blend-mode': 'hard-light' }, | ||
'.mix-blend-soft-light': { 'mix-blend-mode': 'soft-light' }, | ||
'.mix-blend-difference': { 'mix-blend-mode': 'difference' }, | ||
'.mix-blend-exclusion': { 'mix-blend-mode': 'exclusion' }, | ||
'.mix-blend-hue': { 'mix-blend-mode': 'hue' }, | ||
'.mix-blend-saturation': { 'mix-blend-mode': 'saturation' }, | ||
'.mix-blend-color': { 'mix-blend-mode': 'color' }, | ||
'.mix-blend-luminosity': { 'mix-blend-mode': 'luminosity' }, | ||
}, | ||
variants('mixBlendMode') | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters