Skip to content

Commit 5767986

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 f2a7c2c commit 5767986

File tree

3 files changed

+81
-1
lines changed

3 files changed

+81
-1
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +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))
13+
- Improve glob handling for folders with `(`, `)`, `[` or `]` in the file path ([#12715](https://github.com/tailwindlabs/tailwindcss/pull/12715))
1314
- Split `:has` rules when using `experimental.optimizeUniversalDefaults` ([#12736](https://github.com/tailwindlabs/tailwindcss/pull/12736))
1415
- 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))
1517

1618
## [3.4.1] - 2014-01-05
1719

src/corePlugins.js

+1
Original file line numberDiff line numberDiff line change
@@ -2384,6 +2384,7 @@ export let corePlugins = {
23842384
'.mix-blend-saturation': { 'mix-blend-mode': 'saturation' },
23852385
'.mix-blend-color': { 'mix-blend-mode': 'color' },
23862386
'.mix-blend-luminosity': { 'mix-blend-mode': 'luminosity' },
2387+
'.mix-blend-plus-darker': { 'mix-blend-mode': 'plus-darker' },
23872388
'.mix-blend-plus-lighter': { 'mix-blend-mode': 'plus-lighter' },
23882389
})
23892390
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should test the 'mixBlendMode' plugin 1`] = `
4+
"
5+
.mix-blend-normal {
6+
mix-blend-mode: normal;
7+
}
8+
9+
.mix-blend-multiply {
10+
mix-blend-mode: multiply;
11+
}
12+
13+
.mix-blend-screen {
14+
mix-blend-mode: screen;
15+
}
16+
17+
.mix-blend-overlay {
18+
mix-blend-mode: overlay;
19+
}
20+
21+
.mix-blend-darken {
22+
mix-blend-mode: darken;
23+
}
24+
25+
.mix-blend-lighten {
26+
mix-blend-mode: lighten;
27+
}
28+
29+
.mix-blend-color-dodge {
30+
mix-blend-mode: color-dodge;
31+
}
32+
33+
.mix-blend-color-burn {
34+
mix-blend-mode: color-burn;
35+
}
36+
37+
.mix-blend-hard-light {
38+
mix-blend-mode: hard-light;
39+
}
40+
41+
.mix-blend-soft-light {
42+
mix-blend-mode: soft-light;
43+
}
44+
45+
.mix-blend-difference {
46+
mix-blend-mode: difference;
47+
}
48+
49+
.mix-blend-exclusion {
50+
mix-blend-mode: exclusion;
51+
}
52+
53+
.mix-blend-hue {
54+
mix-blend-mode: hue;
55+
}
56+
57+
.mix-blend-saturation {
58+
mix-blend-mode: saturation;
59+
}
60+
61+
.mix-blend-color {
62+
mix-blend-mode: color;
63+
}
64+
65+
.mix-blend-luminosity {
66+
mix-blend-mode: luminosity;
67+
}
68+
69+
.mix-blend-plus-darker {
70+
mix-blend-mode: plus-darker;
71+
}
72+
73+
.mix-blend-plus-lighter {
74+
mix-blend-mode: plus-lighter;
75+
}
76+
"
77+
`;

0 commit comments

Comments
 (0)