-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add mix-blend-mode and background-blend-mode utilities
#3920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3920 +/- ##
==========================================
+ Coverage 86.85% 86.87% +0.02%
==========================================
Files 315 317 +2
Lines 4259 4268 +9
Branches 788 788
==========================================
+ Hits 3699 3708 +9
Misses 485 485
Partials 75 75
Continue to review full report at Codecov.
|
|
Hi, nice work. Have you thought about syntax like Links (see section Available Utilities): |
|
Yeah valid suggestion — my goal is always to keep the names as short as possible without being ambiguous which is why I settled on names like My thinking was just I'll update this PR — would you be interested in adding |
|
Actually looks like GitHub makes it easy to add co-authors now, I'll get this in right now and add you as a co-author on the commit ❤️ |
Co-Authored-By: Peter Neupauer <peter@neupauer.sk>
mix-blend-mode utilitiesmix-blend-mode and background-blend-mode utilities
Co-Authored-By: Peter Neupauer <peter@neupauer.sk>
Thanks. |
* Add mix-blend-mode utilities * Rename mix-blend-mode utilities to `mix-blend-*` Co-Authored-By: Peter Neupauer <peter@neupauer.sk> * Add `background-blend-mode` utilities Co-Authored-By: Peter Neupauer <peter@neupauer.sk> Co-authored-by: Peter Neupauer <peter@neupauer.sk>
This PR adds support for the
mix-blend-modeandbackground-blend-modeproperties.Here's the API:
mix-blend-normalmix-blend-mode: normalmix-blend-multiplymix-blend-mode: multiplymix-blend-screenmix-blend-mode: screenmix-blend-overlaymix-blend-mode: overlaymix-blend-darkenmix-blend-mode: darkenmix-blend-lightenmix-blend-mode: lightenmix-blend-color-dodgemix-blend-mode: color-dodgemix-blend-color-burnmix-blend-mode: color-burnmix-blend-hard-lightmix-blend-mode: hard-lightmix-blend-soft-lightmix-blend-mode: soft-lightmix-blend-differencemix-blend-mode: differencemix-blend-exclusionmix-blend-mode: exclusionmix-blend-huemix-blend-mode: huemix-blend-saturationmix-blend-mode: saturationmix-blend-colormix-blend-mode: colormix-blend-luminositymix-blend-mode: luminositybg-blend-normalbackground-blend-mode: normalbg-blend-multiplybackground-blend-mode: multiplybg-blend-screenbackground-blend-mode: screenbg-blend-overlaybackground-blend-mode: overlaybg-blend-darkenbackground-blend-mode: darkenbg-blend-lightenbackground-blend-mode: lightenbg-blend-color-dodgebackground-blend-mode: color-dodgebg-blend-color-burnbackground-blend-mode: color-burnbg-blend-hard-lightbackground-blend-mode: hard-lightbg-blend-soft-lightbackground-blend-mode: soft-lightbg-blend-differencebackground-blend-mode: differencebg-blend-exclusionbackground-blend-mode: exclusionbg-blend-huebackground-blend-mode: huebg-blend-saturationbackground-blend-mode: saturationbg-blend-colorbackground-blend-mode: colorbg-blend-luminositybackground-blend-mode: luminosityOnly
responsivevariants are enabled by default, but can be configured under themixBlendModeandbackgroundBlendModekeys in yourtailwind.config.jsfile.