Skip to content

Commit ce74a3c

Browse files
clementinelovereinink
authored andcommitted
Add mix-blend-plus-darker utility (#12923)
* feat: add plus-darker support for mix-blend-mode * Fix failing test * Update changelog * Formatting --------- Co-authored-by: Jonathan Reinink <[email protected]>
1 parent 9b789fa commit ce74a3c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12-
- Ensure max specificity of `0,0,1` for button and input Preflight rules ([#12735](https://github.com/tailwindlabs/tailwindcss/pull/12735))
12+
- Ensure max specificity of `0,0,1` for button and input Preflight rules ([#12735](https://github.com/tailwindlabs/tailwindcss/pull/12735))
1313
- Improve glob handling for folders with `(`, `)`, `[` or `]` in the file path ([#12715](https://github.com/tailwindlabs/tailwindcss/pull/12715))
1414
- Split `:has` rules when using `experimental.optimizeUniversalDefaults` ([#12736](https://github.com/tailwindlabs/tailwindcss/pull/12736))
1515
- Sort arbitrary properties alphabetically across multiple class lists ([#12911](https://github.com/tailwindlabs/tailwindcss/pull/12911))
16+
- Add `mix-blend-plus-darker` utility ([#12923](https://github.com/tailwindlabs/tailwindcss/pull/12923))
1617

1718
### Added
1819

src/corePlugins.js

+1
Original file line numberDiff line numberDiff line change
@@ -2378,6 +2378,7 @@ export let corePlugins = {
23782378
'.mix-blend-saturation': { 'mix-blend-mode': 'saturation' },
23792379
'.mix-blend-color': { 'mix-blend-mode': 'color' },
23802380
'.mix-blend-luminosity': { 'mix-blend-mode': 'luminosity' },
2381+
'.mix-blend-plus-darker': { 'mix-blend-mode': 'plus-darker' },
23812382
'.mix-blend-plus-lighter': { 'mix-blend-mode': 'plus-lighter' },
23822383
})
23832384
},

tests/plugins/__snapshots__/mixBlendMode.test.js.snap

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ exports[`should test the 'mixBlendMode' plugin 1`] = `
6666
mix-blend-mode: luminosity;
6767
}
6868
69+
.mix-blend-plus-darker {
70+
mix-blend-mode: plus-darker;
71+
}
72+
6973
.mix-blend-plus-lighter {
7074
mix-blend-mode: plus-lighter;
7175
}

0 commit comments

Comments
 (0)