From 8e3bcbed2a853c6ff757de4773a72eafa624f937 Mon Sep 17 00:00:00 2001 From: Clement Chang <16722967+clementinelove@users.noreply.github.com> Date: Sun, 11 Feb 2024 21:36:44 +0000 Subject: [PATCH 1/4] feat: add plus-darker support for mix-blend-mode --- src/corePlugins.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/corePlugins.js b/src/corePlugins.js index 7e04044308fe..82047a8bc3d7 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -2378,7 +2378,8 @@ export let corePlugins = { '.mix-blend-saturation': { 'mix-blend-mode': 'saturation' }, '.mix-blend-color': { 'mix-blend-mode': 'color' }, '.mix-blend-luminosity': { 'mix-blend-mode': 'luminosity' }, - '.mix-blend-plus-lighter': { 'mix-blend-mode': 'plus-lighter' }, + '.mix-blend-plus-darker': { 'mix-blend-mode': 'plus-darker' }, + '.mix-blend-plus-lighter': { 'mix-blend-mode': 'plus-lighter' } }) }, From 202b787009479b8599741fb5ae08306a9b9af86a Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Tue, 20 Feb 2024 13:49:06 -0500 Subject: [PATCH 2/4] Fix failing test --- tests/plugins/__snapshots__/mixBlendMode.test.js.snap | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/plugins/__snapshots__/mixBlendMode.test.js.snap b/tests/plugins/__snapshots__/mixBlendMode.test.js.snap index c8be25be0cd0..786d86ec62fe 100644 --- a/tests/plugins/__snapshots__/mixBlendMode.test.js.snap +++ b/tests/plugins/__snapshots__/mixBlendMode.test.js.snap @@ -66,6 +66,10 @@ exports[`should test the 'mixBlendMode' plugin 1`] = ` mix-blend-mode: luminosity; } +.mix-blend-plus-darker { + mix-blend-mode: plus-darker; +} + .mix-blend-plus-lighter { mix-blend-mode: plus-lighter; } From b08e4e3fb09a22b01f7c44d8e36e47a4a7a50bd0 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Tue, 20 Feb 2024 13:49:13 -0500 Subject: [PATCH 3/4] Update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a604880c548..1abad10a285f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Ensure max specificity of `0,0,1` for button and input Preflight rules ([#12735](https://github.com/tailwindlabs/tailwindcss/pull/12735)) +- Ensure max specificity of `0,0,1` for button and input Preflight rules ([#12735](https://github.com/tailwindlabs/tailwindcss/pull/12735)) - Improve glob handling for folders with `(`, `)`, `[` or `]` in the file path ([#12715](https://github.com/tailwindlabs/tailwindcss/pull/12715)) - Split `:has` rules when using `experimental.optimizeUniversalDefaults` ([#12736](https://github.com/tailwindlabs/tailwindcss/pull/12736)) +- Add `mix-blend-plus-darker` utility ([#12923](https://github.com/tailwindlabs/tailwindcss/pull/12923)) ### Added From 63e3ff41ed13d1ace1db6ec7f8c12b6cae01b0df Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Tue, 20 Feb 2024 13:59:32 -0500 Subject: [PATCH 4/4] Formatting --- src/corePlugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corePlugins.js b/src/corePlugins.js index 82047a8bc3d7..8728d734595a 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -2379,7 +2379,7 @@ export let corePlugins = { '.mix-blend-color': { 'mix-blend-mode': 'color' }, '.mix-blend-luminosity': { 'mix-blend-mode': 'luminosity' }, '.mix-blend-plus-darker': { 'mix-blend-mode': 'plus-darker' }, - '.mix-blend-plus-lighter': { 'mix-blend-mode': 'plus-lighter' } + '.mix-blend-plus-lighter': { 'mix-blend-mode': 'plus-lighter' }, }) },